Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: third_party/WebKit/LayoutTests/media/media-controller-playbackrate.html

Issue 1373423003: Remove MediaController (already diabled by REF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update web-platform-tests expectations Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698