Index: third_party/WebKit/LayoutTests/media/media-controller.html |
diff --git a/third_party/WebKit/LayoutTests/media/media-controller.html b/third_party/WebKit/LayoutTests/media/media-controller.html |
deleted file mode 100644 |
index 5875bd4659424362350f3f795c691988db873cd5..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/media/media-controller.html |
+++ /dev/null |
@@ -1,71 +0,0 @@ |
-<!DOCTYPE html> |
-<html> |
- <head> |
- <script src=media-file.js></script> |
- <script src=video-test.js></script> |
- |
- <script> |
- var controller; |
- var video2; |
- |
- function start() { |
- video = document.getElementsByTagName('video')[0]; |
- video2 = document.getElementsByTagName('video')[1]; |
- |
- consoleWrite("Test presence of MediaController constructor, controller, and mediaGroup attributes:"); |
- testExpected("typeof(MediaController)", "undefined", "!="); |
- testExpected("video.controller", null); |
- testExpected("video.mediaGroup", ""); |
- consoleWrite(""); |
- consoleWrite("Test that the presence of a mediaGroup attribute creates a controller:") |
- testExpected("video2.mediaGroup", 'group'); |
- testExpected("video2.controller", null, "!="); |
- consoleWrite(""); |
- consoleWrite("Test that setting mediaGroup to an empty string removes the controller:") |
- run("video.mediaGroup = ''"); |
- testExpected("video.controller", null); |
- consoleWrite(""); |
- consoleWrite("Test manually creating and assigning a controller to a media element:") |
- run("controller = new MediaController()"); |
- run("video.controller = controller"); |
- testExpected("video.controller", controller); |
- consoleWrite(""); |
- consoleWrite("Test assigning the wrong type to the controller attribute of a media element:") |
- testException("video.controller = 42", '"TypeError: Failed to set the \'controller\' property on \'HTMLMediaElement\': The provided value is not of type \'MediaController\'."'); |
- testExpected("video.controller", controller); |
- consoleWrite(""); |
- consoleWrite("Test assigning a null controller to a media element:") |
- run("video.controller = null"); |
- testExpected("video.controller", null); |
- consoleWrite(""); |
- consoleWrite("Test that two media elements with the same mediaGroup have the same controller:") |
- run("video.mediaGroup = 'group'"); |
- run("video2.mediaGroup = 'group'"); |
- testExpected("video.controller === video2.controller", true); |
- consoleWrite(""); |
- consoleWrite("Test that setting the controller clears the mediaGroup:") |
- testExpected("video.mediaGroup", "group"); |
- run("video.controller = null"); |
- testExpected("video.controller", null); |
- testExpected("video.hasAttribute('mediaGroup')", false); |
- testExpected("video.mediaGroup", ""); |
- run("video.mediaGroup = 'group'"); |
- testExpected("video.mediaGroup", "group"); |
- run("video.controller = controller"); |
- testExpected("video.controller", controller); |
- testExpected("video.hasAttribute('mediaGroup')", false); |
- testExpected("video.mediaGroup", ""); |
- consoleWrite(""); |
- consoleWrite("Test that setting the controller to undefined is treated as null:") |
- testExpected("video.controller", null, "!="); |
- run("video.controller = undefined"); |
- testExpected("video.controller", null); |
- endTest(); |
- } |
- </script> |
- </head> |
- <body onload="start()"> |
- <video></video> |
- <video mediagroup="group"></video> |
- </body> |
-</html> |