Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c

This commit is contained in:
Josh Matthews 2018-01-31 09:13:41 -05:00
parent c88dc51d03
commit 0e1caebaf4
791 changed files with 23381 additions and 5501 deletions

View file

@ -0,0 +1,29 @@
<html>
<head>
<title>Inline async module script execution order</title>
<meta name=timeout content=long>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
let loaded = [];
let test = async_test("Inline async module script execution order");
window.addEventListener("load", test.step_func(function() {
assert_array_equals(loaded,
["fast", "fast", "fast", "slow", "slow", "slow"]);
test.done();
}));
</script>
<script type="module" async src="resources/slow-module.js?pipe=trickle(d2)&unique=1"></script>
<script type="module" async>
import "./resources/slow-module.js?pipe=trickle(d2)&unique=2";
loaded.push("slow");
</script>
<script type="module" async src="resources/fast-module.js?unique=1"></script>
<script type="module" async>
import "./resources/fast-module.js?unique=2";
loaded.push("fast");
</script>
</body>
</html>

View file

@ -59,4 +59,3 @@ document.head.appendChild(script4_dynamic_error);
<script onload="onLoad(test4_load);" onerror="onError(test4_load);" type="module" async>"use strict";onExecute(test4_load);</script>
<script onload="onLoad(test1_error);" onerror="onError(test1_error);" type="module">"use strict";import "./not_found.js";</script>
<script onload="onLoad(test4_error);" onerror="onError(test4_error);" type="module" async>"use strict";import "./not_found.js";</script>
</script>

View file

@ -10,7 +10,11 @@
window.evaluated_module_script = true;
</script>
<script>
test(() => assert_true(window.evaluated_module_script), "module script in XHTML documents should be evaluated.");
var test = async_test("module script in XHTML documents should be evaluated.");
window.addEventListener("load", () => {
test.step(() => { assert_true(window.evaluated_module_script); });
test.done();
});
</script>
</body>
</html>

View file

@ -0,0 +1,3 @@
// This module is imported with pipe=trickle(d2) to make it load more slowly
// than fast-module.js
loaded.push("slow");