{ "id": "83362", "key": "TIMOB-6451", "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": "12088", "description": "", "name": "Sprint 2011-48", "archived": true, "released": true, "releaseDate": "2011-12-05" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-03T22:45:02.000+0000", "created": "2011-12-03T16:50:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "branch-v8" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-06T19:01:53.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": "10204", "name": "Drillbit" } ], "description": "Drillbit fails to run any tests. Get the follow error w/ Rhino (also occurs w/ v8):\r\n\r\n{quote}\r\nE/ScriptsModule(22261): org.mozilla.javascript.EcmaError: TypeError: Cannot find function addEventListener in object [object Object]. (Resources/app.js#45)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3784)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3762)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3790)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3809)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3880)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2359)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2326)\r\nE/ScriptsModule(22261): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1514)\r\nE/ScriptsModule(22261): \tat script(Resources/app.js:45)\r\n...\r\n{quote}", "attachment": [], "flagged": false, "summary": "Android: Drillbit: Unable to run any test suites, error in harness (app.js:45).", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Runtime: Rhino & V8\r\nSDK: 1.8.0", "comment": { "comments": [ { "id": "174730", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This regression in Drillbit occurred after TIMOB-6090 was merged.\r\nWindow.activity not longer references an ActivityProxy before open.\r\nIt is only when a HW is opened that this becomes a true ActivityProxy.\r\n", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-03T16:52:04.000+0000", "updated": "2011-12-03T16:52:04.000+0000" }, { "id": "174732", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Drillbit uses window.activity to get a reference to the root activity to\r\nlisten for \"instrumentationReady\" event. Changing this to use Ti.Android.currentActivity instead appears to fix the issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-03T16:54:27.000+0000", "updated": "2011-12-03T16:54:27.000+0000" }, { "id": "409360", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-06T19:01:53.000+0000", "updated": "2017-03-06T19:01:53.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }