[TIMOB-25155] Windows: Mocha test Titanium.XML apiXmlNodeIsSupported test failure
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | engSchedule, failure-reviewed |
Reporter | Eric Merriman |
Assignee | Kota Iguchi |
Created | 2017-08-11T16:22:49.000+0000 |
Updated | 2019-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)
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
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