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

Unified 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, 8 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-promise-run-after-script.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-promise-run-after-script.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-promise-run-after-script.html
new file mode 100644
index 0000000000000000000000000000000000000000..fedbb4d600c76ff27cc69e171ad3c3b6cbde7d7d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-promise-run-after-script.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
+<script>
+
+function testFunction()
+{
+ var sync = true;
+ Promise.resolve().then(() => {
+ console.log(sync);
+ });
+ var doc = new DOMParser().parseFromString('hi', 'text/html');
+ sync = false;
+}
+
+function test()
+{
+ InspectorTest.sendCommandOrDie("Console.enable", {});
+ InspectorTest.eventHandler["Console.messageAdded"] = messageAdded;
+ InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "testFunction()" });
+
+ function messageAdded(result)
+ {
+ InspectorTest.logObject(result.params.message.parameters[0]);
+ InspectorTest.completeTest();
+ }
+}
+</script>
+</head>
+<body onLoad="runTest();">
+Check that DOMParser().parseFromString() doesn't produce PerformMicrotasks call if JS is executing.
+</body>
+</html>
« 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