summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-write/script_008.html
blob: c5a44dc70027d382267c2516130aa95ba53e7033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<title>document.write external script that document.writes external 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);
});
</script>
<script src="008.js"></script>
<script>
t.step(function() {
  order.push(4);
  assert_array_equals(order, [1,2,3,4]);
});
t.done();
</script>
<div id="log"></div>