Closed Bug 1417501 Opened 7 years ago Closed 7 years ago

Console tests are failing when run in isolation

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox-esr52 unaffected, firefox57 unaffected, firefox58 unaffected, firefox59 fixed)

RESOLVED FIXED
Firefox 59
Tracking Status
firefox-esr52 --- unaffected
firefox57 --- unaffected
firefox58 --- unaffected
firefox59 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

(Keywords: regression)

Attachments

(1 file)

In Bug 1404917, we introduced loading the /devtools/client/netmonitor/test/shared-head.js file in devtools/client/webconsole/new-console-output/test/mochitest/head.js [1].
But, the shared file is not declared in browser.ini, which ends up making variable from head.js inaccessible, and some tests that relies on them to fail.

i.e. running

> /mach test  devtools/client/webconsole/new-console-output/test/mochitest/


makes the following tests fail :
> - browser_netmonitor_shows_reqs_in_webconsole.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_netmonitor_shows_reqs_in_webconsole.js:68 - ReferenceError: waitForExistingRequests is not defined
> - browser_netmonitor_shows_reqs_in_webconsole.js | A promise chain failed to handle a rejection: 'getEventTimings' pending request packet to 'server1.conn28.child1/netEvent27' can't be sent as the connection just closed. - stack: null
> - browser_netmonitor_shows_reqs_in_webconsole.js | A promise chain failed to handle a rejection: 'getSecurityInfo' active request packet to 'server1.conn28.child1/netEvent27' can't be sent as the connection just closed. - stack: null
> - browser_webconsole_allow_mixedcontent_securityerrors.js | Exception thrown - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_allow_mixedcontent_securityerrors.js:19 - ReferenceError: can't access lexical declaration `DOCS_GA_PARAMS' before initialization
> - browser_webconsole_block_mixedcontent_securityerrors.js | Exception thrown - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_block_mixedcontent_securityerrors.js:22 - ReferenceError: can't access lexical declaration `DOCS_GA_PARAMS' before initialization
> - browser_webconsole_keyboard_accessibility.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_keyboard_accessibility.js:51 - TypeError: WCUL10n is undefined
> - browser_webconsole_network_attach.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_network_attach.js:53 - ReferenceError: waitForExistingRequests is not defined
> - browser_webconsole_network_messages_openinnet.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_network_messages_openinnet.js:80 - ReferenceError: waitForExistingRequests is not defined
> - browser_webconsole_network_messages_openinnet.js | A promise chain failed to handle a rejection: 'getSecurityInfo' pending request packet to 'server1.conn54.child1/netEvent27' can't be sent as the connection just closed. - stack: null
> - browser_webconsole_network_messages_openinnet.js | A promise chain failed to handle a rejection: 'getEventTimings' active request packet to 'server1.conn54.child1/netEvent27' can't be sent as the connection just closed. - stack: null
> - browser_webconsole_observer_notifications.js | Uncaught exception - waitFor - timed out after 500 tries.

This was not picked up by TRY because the netmonitor tests are ran before the console's one, which loads /devtools/client/netmonitor/test/shared-head.js .


[1] https://hg.mozilla.org/mozilla-central/diff/291c051b7861/devtools/client/webconsole/new-console-output/test/mochitest/head.js#l1.21
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: -- → P1
Depends on: 1404917
Keywords: regression
Comment on attachment 8928579 [details]
Bug 1417501 - Add devtools/client/netmonitor/test/shared-head.js in console browser.ini; .

https://reviewboard.mozilla.org/r/199814/#review204912
Attachment #8928579 - Flags: review?(poirot.alex) → review+
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f0b8c266d7bf
Add devtools/client/netmonitor/test/shared-head.js in console browser.ini; r=ochameau.
https://hg.mozilla.org/mozilla-central/rev/f0b8c266d7bf
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: