Closed
Bug 1404877
Opened 6 years ago
Closed 5 years ago
Migrate browser_webconsole_bug_658368_time_methods.js to the new frontend
Categories
(DevTools :: Console, enhancement, P1)
DevTools
Console
Tracking
(firefox57 wontfix, firefox58 wontfix, firefox60 fixed)
RESOLVED
FIXED
Firefox 60
People
(Reporter: nchevobbe, Assigned: sole)
References
Details
(Whiteboard: [newconsole-mvp])
Attachments
(1 file)
this should be only about testing that we don't mix console.time in different tabs.
Reporter | ||
Updated•6 years ago
|
status-firefox57:
--- → wontfix
Priority: -- → P3
Updated•5 years ago
|
Priority: P3 → P2
Whiteboard: [newconsole-mvp]
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → spenades
Updated•5 years ago
|
Status: NEW → ASSIGNED
Priority: P2 → P1
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•5 years ago
|
||
mozreview-review |
Comment on attachment 8951548 [details] Bug 1404877 - Migrate browser_webconsole_bug_658368_time_methods.js to the new frontend. https://reviewboard.mozilla.org/r/220858/#review226792 I only have one comment, but the test is already working and is ready to land imo. Thanks a lot Sole ! ::: devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_time_methods.js:48 (Diff revision 1) > - BrowserTestUtils.loadURI(gBrowser.selectedBrowser, TEST_URI3); > - > - yield waitForMessages({ > - webconsole: hud2, > + let message1 = await new Promise(resolve => { > + setTimeout(() => { > + resolve(findMessage(hud2, "bTimer started")); > + }, 250); > - messages: [{ > - name: "bTimer started", > - consoleTime: "bTimer", > - }], > }); so, instead of waiting for an arbitrary number of milliseconds, could we have in the support file a "smoke signal" message just after the console.time ? ```js function foo() { console.timeEnd("aTimer"); } console.time("aTimer"); foo(); console.time("bTimer"); console.log("smoke signal") ``` (or something better in the log). The console API guarantee us that smoke signal would be printed after a message for console.time("bTimer"). So we could do : ```js await waitFor(() => findMessage(hud2, "smoke signal")); is(findMessage(hud2, "bTimer started"), null, "no message is printed:...") ``` what do you think of this ?
Attachment #8951548 -
Flags: review?(nchevobbe) → review+
Comment hidden (mozreview-request) |
Reporter | ||
Comment 4•5 years ago
|
||
mozreview-review |
Comment on attachment 8951548 [details] Bug 1404877 - Migrate browser_webconsole_bug_658368_time_methods.js to the new frontend. https://reviewboard.mozilla.org/r/220858/#review226830 thanks sole :)
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06c8e6e3303c Migrate browser_webconsole_bug_658368_time_methods.js to the new frontend. r=nchevobbe
Comment 6•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/06c8e6e3303c
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Updated•5 years ago
|
Updated•5 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•