Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25155] Windows: Mocha test Titanium.XML apiXmlNodeIsSupported test failure

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsWindows
LabelsengSchedule, failure-reviewed
ReporterEric Merriman
AssigneeKota Iguchi
Created2017-08-11T16:22:49.000+0000
Updated2019-05-02T18:18:39.000+0000

Description

Titanium.XML apiXmlNodeIsSupported please investigate the failure. Please use https://github.com/ewanharris/titanium-mobile-mocha-suite/tree/TIMOB-24816 to find the related test You can use https://github.com/ewanharris/mocha-test to quickly debug (most) mocha tests)

Comments

  1. Ewan Harris 2017-09-01

    Throws the below ,"error":{"name":"AssertionError","operator":"to throw exception (got [TypeError: null is not an object (evaluating 'this.ownerDocument.implementation')])","message":"expected [Function] not to throw exception (got [TypeError: null is not an object (evaluating 'this.ownerDocument.implementation')])","generatedMessage":true,"stack":"/should.js:1419:18\n/your-test.js:64:15\nrun@/ti-mocha.js:4363:19\nrunTest@/ti-mocha.js:4768:13\n/ti-mocha.js:4846:19\nnext@/ti-mocha.js:4693:16\n/ti-mocha.js:4703:11\nnext@/ti-mocha.js:4641:25\n/ti-mocha.js:4670:9\ntimeslice@/ti-mocha.js:5777:27"} Error originates from https://github.com/appcelerator/titanium_mobile_windows/blob/7b0db6e247c1662c535b2e4bd3f0c141ae95a5a0/Source/TitaniumKit/src/XML/dom.js#L358
  2. Ewan Harris 2019-04-23

    Still occurs, looks like method [use is obsolete](https://developer.mozilla.org/en-US/docs/Web/API/Node/isSupported), and modern browsers no longer seem to implement it

JSON Source