4 <title>networkState after inserting
<source
> test
</title>
5 <script src=video-test.js
></script>
8 <video controls
><source></video>
10 <p>Test that a
<source
> inserted when networkState is NETWORK_NO_SOURCE triggers
11 resource selection, immediately changing networkState to NETWORK_NO_SOURCE.
</p>
14 consoleWrite("<source> inserted by the parser.");
15 video
= document
.querySelector('video');
16 testExpected("video.networkState", HTMLMediaElement
.prototype.NETWORK_NO_SOURCE
, "==");
18 consoleWrite("<br><video> created with script.");
19 video
= document
.createElement('video');
20 testExpected("video.networkState", HTMLMediaElement
.prototype.NETWORK_EMPTY
, "==");
21 consoleWrite("<source> inserted by script.");
22 video
.appendChild(document
.createElement('source'));
23 testExpected("video.networkState", HTMLMediaElement
.prototype.NETWORK_NO_SOURCE
, "==");
24 if (window
.testRunner
)
25 testRunner
.notifyDone();