Closed Bug 1342293 Opened 9 years ago Closed 9 years ago

generatePageErrorStubs should call expectUncaughtException for each exception.

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(firefox54 fixed)

RESOLVED FIXED
Firefox 54
Tracking Status
firefox54 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

discovered by bug 104442. https://dxr.mozilla.org/mozilla-central/rev/32dcdde1fc64fc39a9065dc4218265dbc727673f/testing/mochitest/tests/SimpleTest/SimpleTest.js#1383-1389 > /** > * Indicates to the test framework that the next uncaught exception during > * the test is expected, and should not cause a test failure. > */ > SimpleTest.expectUncaughtException = function (aExpecting) { > SimpleTest._expectingUncaughtException = aExpecting === void 0 || !!aExpecting; > }; currently browser_webconsole_check_stubs_page_error.js calls it only once, but it should be done by generatePageErrorStubs for each entry of pageError. https://dxr.mozilla.org/mozilla-central/rev/32dcdde1fc64fc39a9065dc4218265dbc727673f/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/browser_webconsole_check_stubs_page_error.js#11-15
Moved expectUncaughtException() to loop inside generatePageErrorStubs
Attachment #8840692 - Flags: review?(chevobbe.nicolas)
(this patch will conflict with bug 1342215 patch, but the rebase should be trivial, since the actual change is not related)
Comment on attachment 8840692 [details] [diff] [review] Call expectUncaughtException for each pageError. Review of attachment 8840692 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks !
Attachment #8840692 - Flags: review?(chevobbe.nicolas) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: