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

Unified Diff: LayoutTests/media/controls-restrained-media-controller.html

Issue 262463003: Sync "restrained media controller" with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/media/controls-restrained-media-controller-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/controls-restrained-media-controller.html
diff --git a/LayoutTests/media/controls-restrained-media-controller.html b/LayoutTests/media/controls-restrained-media-controller.html
new file mode 100644
index 0000000000000000000000000000000000000000..739dcd205720052b5b1b7f174fa2e953dd1bcc6b
--- /dev/null
+++ b/LayoutTests/media/controls-restrained-media-controller.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<title>controls of a non-blocked and a blocked media element slaved to a media controller</title>
+<script src="media-file.js"></script>
+<video mediagroup="x" controls></video>
+<!-- This video will stay in readyState HAVE_NOTHING, which before
+ https://www.w3.org/Bugs/Public/show_bug.cgi?id=25429 would cause the media
+ controller to *not* be a restrained media controller, which would make the
+ activation behavior (toggle play/pause) do the wrong thing. -->
+<video mediagroup="x" hidden></video>
+<script>
+var video = document.querySelector('video[controls]');
+video.src = findMediaFile('video', 'content/test');
+
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ video.addEventListener('canplay', function() {
+ testRunner.notifyDone();
+ });
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/media/controls-restrained-media-controller-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698