OLD | NEW |
| (Empty) |
1 <video controls></video> | |
2 <p>Test that removing a media element from the tree when no media has been loade
d does not generate a loadstart event.</p> | |
3 <script src=media-file.js></script> | |
4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | |
5 (Please avoid writing new tests using video-test.js) --> | |
6 <script src=video-test.js></script> | |
7 <script> | |
8 didReceiveLoadStartEvent = false; | |
9 video.addEventListener('loadstart', function() { didReceiveLoadStartEvent =
true; }); | |
10 video.src = findMediaFile("video", "content/test"); | |
11 testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE); | |
12 run("document.body.removeChild(video)"); | |
13 testExpected("didReceiveLoadStartEvent", false); | |
14 endTest(); | |
15 </script> | |
OLD | NEW |