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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-promise-run-after-script.html

Issue 1933033002: Don't run PerformCheckpoint on Document::finishedParsing while running JS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-promise-run-after-script-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script>
5
6 function testFunction()
7 {
8 var sync = true;
9 Promise.resolve().then(() => {
10 console.log(sync);
11 });
12 var doc = new DOMParser().parseFromString('hi', 'text/html');
13 sync = false;
14 }
15
16 function test()
17 {
18 InspectorTest.sendCommandOrDie("Console.enable", {});
19 InspectorTest.eventHandler["Console.messageAdded"] = messageAdded;
20 InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "testFunc tion()" });
21
22 function messageAdded(result)
23 {
24 InspectorTest.logObject(result.params.message.parameters[0]);
25 InspectorTest.completeTest();
26 }
27 }
28 </script>
29 </head>
30 <body onLoad="runTest();">
31 Check that DOMParser().parseFromString() doesn't produce PerformMicrotasks call if JS is executing.
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-promise-run-after-script-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698