blob: 23e7104cab8c6ac6a9447e4e654d2518e5b0ea70 [file] [log] [blame]
<!doctype html>
<title>NOT invoking resource selection by removing from document with NETWORK_EMPTY</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');
document.body.appendChild(v);
assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after appending v to document');
v.parentNode.removeChild(v); // search for "When a media element is removed from a Document,"
assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after removing v');
});
</script>
<script>
t.step(function() {
assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState in separate script');
t.done();
});
</script>