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

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

Issue 227593006: Test the media element activation behavior in fullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: simplify more Created 6 years, 8 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/activation-behavior-fullscreen-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ffa695f15450ec91f41196311ddfd92df6d4e0af
--- /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_false(v.paused, "paused state after click");
+ t.done();
+ });
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/media/activation-behavior-fullscreen-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698