| Index: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-load.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-load.html b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-load.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b3210e09b400f68cb0596084250333d862f35acf
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-load.html
|
| @@ -0,0 +1,20 @@
|
| +<!doctype html>
|
| +<title>invoking resource selection with load()</title>
|
| +<script src="../../../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../../../resources/testharnessreport.js"></script>
|
| +<div id=log></div>
|
| +<script>
|
| +var v;
|
| +var t = async_test(function(t) {
|
| + v = document.createElement('video');
|
| + assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after creating v');
|
| + v.load();
|
| + assert_equals(v.networkState, v.NETWORK_NO_SOURCE, 'networkState after v.load()');
|
| +});
|
| +</script>
|
| +<script>
|
| +t.step(function() {
|
| + assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState in separate script');
|
| + t.done();
|
| +});
|
| +</script>
|
|
|