chromium/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/execution-timing/125.html

<!DOCTYPE html>
<html><head>
  <title>scheduler: altering the type attribute and changing script data external script </title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script src="testlib/testlib.js"></script>
</head>
<div id="log"></div>
<script>
  var t = async_test();
</script>
<script id="test" type="text/plain" src="scripts/include-1.js?pipe=trickle(d1)"></script>
<script>
t.step(function() {
  var script = document.getElementById("test");
  script.removeAttribute("type");
  var marker = document.createElement("script");
  marker.src = "scripts/include-2.js?pipe=trickle(d2)";
  marker.async = false;
  script.parentNode.appendChild(marker);
  script.appendChild(document.createTextNode(""));
});

onload = t.step_func(function() {
  assert_array_equals(eventOrder, ["external script #1", "external script #2"]);
  t.done();
});
</script>