{ "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.

{html}", "attachment": [], "flagged": false, "summary": "KS XML DOM test fails for Android.", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "125197", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The tests make assumptions about whitespace handling; this is\nthe bit that fails:

\n
\ntestResult = testResult && (elements!=null && elements.length==3);\n
\n

elements.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
\n

This gives 7 child nodes when including the whitespace:

\n
\nwhitespace element whitespace element whitespace element whitespace\n
\n

whereas the 3 if the whitespace is stripped out during\nparsing:

\n
\nelement element elmeent\n
{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:56.000+0000", "updated": "2011-04-15T02:47:56.000+0000" }, { "id": "125198", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(I should say that's the first bit that fails, probably\nmore similar miscounts follow. :)

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:56.000+0000", "updated": "2011-04-15T02:47:56.000+0000" }, { "id": "125199", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

(from [a2079f4872f27847a7ff777993472aa81e123afb])\n[#1257 state:fixed-in-qa] Remove XML DOM test\nfrom KS

\n

Removed 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...

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T02:47:56.000+0000", "updated": "2011-04-15T02:47:56.000+0000" }, { "id": "125200", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a

\n

drillbit tests passed on Monday.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:56.000+0000", "updated": "2011-04-15T02:47:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }