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-play.html
1 <!doctype html>
2 <title>invoking resource selection with play()</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   assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after creating v');
11   v.play();
12   assert_equals(v.networkState, v.NETWORK_NO_SOURCE, 'networkState after v.play()');
13 });
14 </script>
15 <script>
16 t.step(function() {
17   assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState in separate script');
18   t.done();
19 });
20 </script>