Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/DOMContentLoaded-defer-support.js |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/DOMContentLoaded-defer-support.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/DOMContentLoaded-defer-support.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..28487111eaa96140f77ae5a7d3e8eb81e1a573f3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/DOMContentLoaded-defer-support.js |
@@ -0,0 +1,13 @@ |
+t.step(function() { |
+ assert_false(dcl, "DOMContentLoaded should not have fired before executing " + |
+ "a defer script"); |
+ |
+ setTimeout(t.step_func(function() { |
+ assert_false(dcl, "DOMContentLoaded should not have fired before " + |
+ "executing a task queued from a defer script"); |
+ setTimeout(t.step_func_done(function() { |
+ assert_true(dcl, "DOMContentLoaded should have fired in a task that " + |
+ "was queued after the DOMContentLoaded task was queued"); |
+ }), 0); |
+ }), 0); |
+}); |