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

Unified Diff: LayoutTests/media/activation-behavior-fullscreen.html

Issue 829393004: Re-re-enable the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop the changes to MediaControlOverlayPlayButtonElement and add a test Created 5 years, 11 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: LayoutTests/media/activation-behavior-fullscreen.html
diff --git a/LayoutTests/media/activation-behavior-fullscreen.html b/LayoutTests/media/activation-behavior-fullscreen.html
new file mode 100644
index 0000000000000000000000000000000000000000..a0de3d1830c78981a4199d5269b0c26dbce0ca74
--- /dev/null
+++ b/LayoutTests/media/activation-behavior-fullscreen.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<title>activation behavior in fullscreen</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="media-file.js"></script>
+<div id="log"></div>
+<video></video>
+<script>
+async_test(function(t)
+{
+ var v = document.querySelector("video");
+ v.src = findMediaFile("video", "content/test");
+
+ v.addEventListener("loadeddata", function()
+ {
+ document.onclick = function()
+ {
+ document.onclick = null;
+ v.webkitRequestFullScreen();
+ };
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ });
+
+ v.addEventListener("webkitfullscreenchange", function()
+ {
+ assert_true(v.paused, "paused state before click");
+ v.click();
+ assert_true(v.paused, "paused state after click");
+ t.done();
+ });
+});
+</script>
« no previous file with comments | « LayoutTests/media/activation-behavior-accesskey.html ('k') | LayoutTests/media/activation-behavior-shadow.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698