{ "id": "61889", "key": "TIMOB-1257", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:40.000+0000", "created": "2011-04-15T02:47:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:40.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
Second part of the test (result should be true, is false).\nReason not known at this time.
The tests make assumptions about whitespace handling; this is\nthe bit that fails:
\n\ntestResult = testResult && (elements!=null && elements.length==3);
\n
\nelements.length returns 7, which makes sense:
\n\n' <node id=\"node 1\">'+\n' <node id=\"node 2\">'+\n' <node id=\"node 3\"/>'+\n' </node>'+\n' <node id=\"node 4\">'+\n' <node id=\"node 5\"/>'+\n' </node>'+\n' <node id=\"node 6\">'+\n' <node id=\"node 7\"/>'+\n' </node>'+\n' </node>'+
\n
\nThis gives 7 child nodes when including the whitespace:
\n\nwhitespace element whitespace element whitespace element whitespace
\n
\nwhereas the 3 if the whitespace is stripped out during\nparsing:
\n\nelement element elmeent
\n
(I should say that's the first bit that fails, probably\nmore similar miscounts follow. :)
(from [a2079f4872f27847a7ff777993472aa81e123afb])\n[#1257 state:fixed-in-qa] Remove XML DOM test\nfrom KS
\nRemoved the XML DOM test from KS as there is an updated XML DOM\ntest in drillbit and is no longer needed in KS.
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/a2079f4872f2...
Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a
\ndrillbit tests passed on Monday.