Index: third_party/WebKit/LayoutTests/media/video-seek-no-src.html |
diff --git a/third_party/WebKit/LayoutTests/media/video-seek-no-src.html b/third_party/WebKit/LayoutTests/media/video-seek-no-src.html |
index e6662f1851ef8aeef8d33dd5ee206ae302347ef8..c944bd17417315f2600cfbbff4dfc674f248bb1b 100644 |
--- a/third_party/WebKit/LayoutTests/media/video-seek-no-src.html |
+++ b/third_party/WebKit/LayoutTests/media/video-seek-no-src.html |
@@ -1,20 +1,14 @@ |
-<html> |
-<body> |
- |
- <video loop controls></video> |
- |
- <p>Test that seeking video with no 'src' attribute sets default playback start position to that time.</p> |
- |
- <!-- TODO(foolip): 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); |
- testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); |
- video.currentTime = 1.1; |
- testExpected("video.currentTime", 1.1); |
- endTest(); |
- </script> |
- |
-</body> |
-</html> |
+<!DOCTYPE HTML> |
+<title>Test that seeking video with no "src" attribute, sets default playback start position to that time.</title> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<video></video> |
+<script> |
+test(function() { |
+ var video = document.querySelector("video"); |
+ assert_equals(video.networkState, HTMLMediaElement.NETWORK_EMPTY); |
+ assert_equals(video.readyState, HTMLMediaElement.HAVE_NOTHING); |
+ video.currentTime = 1.1; |
+ assert_equals(video.currentTime, 1.1); |
+}); |
+</script> |