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-fragment-into-document.html
1 <!doctype html>
2 <title>NOT invoking resource selection by inserting document fragment 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 var v;
8 var t = async_test(function(t) {
9   v = document.createElement('video');
10   var fragment = document.createDocumentFragment();
11   fragment.appendChild(v);
12   assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after fragment.appendChild(v)');
13   document.body.appendChild(fragment);
14   assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after document.body.appendChild(fragment)');
15 });
16 </script>
17 <script>
18 t.step(function() {
19   assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState in separate script');
20   t.done();
21 });
22 </script>