Index: third_party/WebKit/LayoutTests/media/video-play-empty-events.html |
diff --git a/third_party/WebKit/LayoutTests/media/video-play-empty-events.html b/third_party/WebKit/LayoutTests/media/video-play-empty-events.html |
index 25750e3f50a309a65490e8f3fd4e5da92b552519..e9c896dc04ae0dac16d0507b2f3be0626931058d 100644 |
--- a/third_party/WebKit/LayoutTests/media/video-play-empty-events.html |
+++ b/third_party/WebKit/LayoutTests/media/video-play-empty-events.html |
@@ -4,10 +4,12 @@ |
<video controls></video> |
<p>Test that play() from EMPTY network state triggers load() and async play event.</p> |
<script src=media-file.js></script> |
+ <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
+ (Please avoid writing new tests using video-test.js) --> |
<script src=video-test.js></script> |
<script> |
testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); |
- |
+ |
waitForEvent("loadstart"); |
waitForEvent("ratechange"); |
waitForEvent("waiting"); |
@@ -17,9 +19,9 @@ |
waitForEvent("loadeddata"); |
waitForEvent("canplay"); |
waitForEvent("play"); |
- |
+ |
waitForEvent('playing', function () { testExpected("video.paused", false); endTest(); } ); |
- |
+ |
video.src = findMediaFile("video", "content/test"); |
run("video.play()"); |
consoleWrite("SCRIPT DONE"); |