aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/script_006.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/script_006.html')
m---------tests/wpt/web-platform-tests0
-rw-r--r--tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/script_006.html20
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests b/tests/wpt/web-platform-tests
deleted file mode 160000
-Subproject 29dfb8944e535d439ca94cf7d1b1d9138a8ad11
diff --git a/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/script_006.html b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/script_006.html
new file mode 100644
index 00000000000..c8dd9a5f9ae
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/script_006.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<title>document.write external script followed by internal script</title>
+<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
+<script>
+var t = async_test();
+var order = [];
+t.step(function() {
+ order.push(1);
+ document.write("<script src='006.js'><"+"/script><script>t.step(function(){order.push(4)})</script"+">");
+ order.push(2);
+});
+</script>
+<script>
+t.step(function() {
+ order.push(5);
+ assert_array_equals(order, [1,2,3,4,5]);
+});
+t.done();
+</script>
+<div id="log"></div>