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