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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/event-loops/microtask_after_script.html

Issue 2323113002: Revert "Import wpt@65954a35b4e0a5cee1f4839271ba0e44f187c0a6" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/event-loops/microtask_after_script.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/event-loops/microtask_after_script.html b/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/event-loops/microtask_after_script.html
deleted file mode 100644
index 799a0de605fb7ad99aa19da3bdc5195f40ce2bf1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/event-loops/microtask_after_script.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<head>
-<link rel=author title="Aleks Totic" href="mailto:atotic@chromium.org">
-<link rel=help href="https://html.spec.whatwg.org/#clean-up-after-running-script">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="resources/common.js"></script>
-</head>
-<body style="height:2000px;">
-<script>
-/*
-promise 1, promise 2 execute immediately after script tag
-promise 1 child executes immediately after promise 2.
-
-Relevant specs:
-
-https://html.spec.whatwg.org/#clean-up-after-running-script
-If the JavaScript execution context stack is now empty, perform a microtask checkpoint.
-
-https://html.spec.whatwg.org/#perform-a-microtask-checkpoint
-"perform a microtask checkpoint" runs in a loop until all microtasks have been delivered.
-*/
-
-var test = async_test("Microtask immediately after script");
-
-var events = [];
-
-Promise.resolve()
-.then(function() {
- events.push("promise 1");
- return Promise.resolve();
-})
-.then(function() {
- test.step(function() {
- events.push("promise 1 child");
- assert_array_equals(events, ["promise 1", "promise 2", "promise 1 child"]);
- test.done();
- });
-});
-Promise.resolve()
-.then(function() {
- events.push("promise 2");
-});
-
-// Set up events that must be executed after Promise.
-window.setTimeout(function() {
- events.push('timeout');
-}, 0);
-window.addEventListener('scroll', function() {
- events.push('scroll');
-});
-window.scrollBy(0,10);
-
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698