Index: third_party/WebKit/LayoutTests/media/media-controller-playbackrate.html |
diff --git a/third_party/WebKit/LayoutTests/media/media-controller-playbackrate.html b/third_party/WebKit/LayoutTests/media/media-controller-playbackrate.html |
deleted file mode 100644 |
index 50cb338e8327533f1ee2ffaa5cc98076f85245da..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/media/media-controller-playbackrate.html |
+++ /dev/null |
@@ -1,58 +0,0 @@ |
-<!DOCTYPE html> |
-<html> |
- <head> |
- <script src=media-file.js></script> |
- <script src=video-test.js></script> |
- <script> |
- var start = function() { |
- findMediaElement(); |
- waitForEventOnce('canplay',canplay); |
- video.src = findMediaFile('video', 'content/test'); |
- }; |
- |
- var canplay = function() { |
- video.mediaGroup = "group"; |
- |
- // Test non-finite rates. |
- testException("video.controller.defaultPlaybackRate = -Infinity", '"TypeError: Failed to set the \'defaultPlaybackRate\' property on \'MediaController\': The provided double value is non-finite."'); |
- testException("video.controller.defaultPlaybackRate = Infinity", '"TypeError: Failed to set the \'defaultPlaybackRate\' property on \'MediaController\': The provided double value is non-finite."'); |
- testException("video.controller.defaultPlaybackRate = NaN", '"TypeError: Failed to set the \'defaultPlaybackRate\' property on \'MediaController\': The provided double value is non-finite."'); |
- testException("video.controller.playbackRate = -Infinity", '"TypeError: Failed to set the \'playbackRate\' property on \'MediaController\': The provided double value is non-finite."'); |
- testException("video.controller.playbackRate = Infinity", '"TypeError: Failed to set the \'playbackRate\' property on \'MediaController\': The provided double value is non-finite."'); |
- testException("video.controller.playbackRate = NaN", '"TypeError: Failed to set the \'playbackRate\' property on \'MediaController\': The provided double value is non-finite."'); |
- |
- // Test that the controller rate sets the video rate. |
- video.playbackRate = 0; |
- video.defaultPlaybackRate = 0; |
- video.controller.playbackRate = 0; |
- video.controller.defaultPlaybackRate = 0; |
- |
- // Wait for the seek initiated by the "bringing up to speed" |
- // step to complete. |
- waitForEventOnce('seeked', seeked); |
- }; |
- |
- var seeked = function() { |
- waitForEvent('play', play); |
- video.play(); |
- }; |
- |
- var play = function() { |
- video.controller.playbackRate = 2; |
- waitForEventOnce("playing", playing); |
- }; |
- |
- var playing = function() { |
- waitForEventOnce("timeupdate", timeupdate); |
- }; |
- |
- var timeupdate = function() { |
- testExpected('video.currentTime', 0, '!='); |
- endTest(); |
- }; |
- </script> |
- </head> |
- <body onload="start()"> |
- <video controls></video> |
- </body> |
-</html> |