Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6534] Android: Rhino: Drillbit test for XML fails

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:03.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsAndroid
Labelsn/a
ReporterOpie Cyrus
AssigneePing Wang
Created2011-12-09T11:12:37.000+0000
Updated2012-02-14T23:29:03.000+0000

Description

Running the XML drillbit test under Rhino will result in a failure for the last two tests. Results from a recent update for the XML element tests. NOTE: remove the !android checks put in with TIMOB-6627

Comments

  1. Ping Wang 2011-12-09

    There are two failures in xml.js. 1) line 1284. It throws DOMException with error code INUSE_ATTRIBUTE_ERR which is raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements. It should not throw exception because this test is replacing an attribute node by itself and it should has no effect based on the doc http://developer.android.com/reference/org/w3c/dom/Element.html#setAttributeNode(org.w3c.dom.Attr). 2) line 1372. It throws the same exception as above. Based on the JS code, throwing the exception is expected. But the odd thing is in this test, it uses setAttributeNodeNS and setAttributeNode for the same attribute node.
  2. Marshall Culpepper 2011-12-13

    We need a test "if (!android)" only for 1_8_X to verify we're running the rest of the XML drillbit tests. Do not resolve for 1_8_x merge
  3. Natalie Huynh 2012-02-06

    Failed: Tested XML with drillbit using: version=1.9.0 module_apiversion=2 timestamp=01/23/12 15:04 githash=72b3e82 fails to run
  4. Ping Wang 2012-02-07

    XML test passes using latest master on HTC 2.3.4 phone.
  5. Natalie Huynh 2012-02-08

    Retested with version=1.9.0 module_apiversion=2 timestamp=01/23/12 15:04 githash=72b3e82 with rhino and emulator 2.2 all test passed

JSON Source