Update WPT tests for embedded content
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / semantics / embedded-content / media-elements / loading-the-media-resource / resource-selection-invoke-insert-parent-into-document.html
1 <!doctype html>
2 <title>NOT invoking resource selection by inserting parent into a document</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <div id=log></div>
6 <script>
7 async_test(function(t) {
8   var v = document.createElement('video');
9   var div = document.createElement('div');
10   div.appendChild(v);
11   assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after div.appendChild(v)');
12   document.body.appendChild(div);
13   assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after document.body.appendChild(div)');
14   window.onload = t.step_func(function() {
15     assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState in window.onload');
16     t.done();
17   });
18 });
19 </script>