Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-log-doesnt-run-microtasks.js

Issue 2954093003: [DevTools] Migrate inspector-protocol/runtime tests to new harness (Closed)
Patch Set: fail: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startBlank(`Check that console.log doesn't run microtasks.`);
3
4 dp.Runtime.onConsoleAPICalled(result => {
5 testRunner.logObject(result.params.args[0]);
6 if (result.params.args[0].value === 'finished')
7 testRunner.completeTest();
8 });
9
10 dp.Runtime.enable();
11 dp.Runtime.evaluate({expression: `
12 (function testFunction() {
13 Promise.resolve().then(function(){ console.log(239); });
14 console.log(42);
15 console.log(43);
16 })()
17 `});
18 dp.Runtime.evaluate({expression: `setTimeout(() => console.log('finished'), 0) `});
19 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698