resource-selection-invoke-remove-from-document.html (627B)
1 <!doctype html> 2 <title>NOT invoking resource selection by removing from document with NETWORK_EMPTY</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 test(function() { 9 v = document.createElement('video'); 10 document.body.appendChild(v); 11 assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after appending v to document'); 12 v.parentNode.removeChild(v); // search for "When a media element is removed from a Document," 13 assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after removing v'); 14 }); 15 </script>