Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25157] Windows: Mocha test Titanium.XML apiXmlAttr 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:52.000+0000
Updated2019-05-02T18:18:57.000+0000

Description

Titanium.XML apiXmlAttr 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

    https://github.com/ewanharris/titanium-mobile-mocha-suite/blob/4b75b3f057ad8771bc0d0f2ebf249096462a9207/Resources/ti.xml.test.js#L1066 attr.value === undefined "error":{"name":"AssertionError","expected":"","operator":"to be","message":"expected undefined to be ''","generatedMessage":true,"stack":"/should.js:1411:20\n/your-test.js:88:30\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","showDiff":true}}
  2. Ewan Harris 2019-04-23

    Per spec this should be a string by default, not undefined https://www.w3.org/TR/dom/#attr Attributes have a namespace (null or a non-empty string), namespace prefix (null or a non-empty string), local name (a non-empty string), name (a non-empty string), *value (a string),* and element (null or an element).

JSON Source