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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/media/activation-behavior-fullscreen-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <title>activation behavior in fullscreen</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="media-file.js"></script>
6 <div id="log"></div>
7 <video></video>
8 <script>
9 async_test(function(t)
10 {
11 var v = document.querySelector("video");
12 v.src = findMediaFile("video", "content/test");
13
14 v.addEventListener("loadeddata", function()
15 {
16 document.onclick = function()
17 {
18 document.onclick = null;
19 v.webkitRequestFullScreen();
20 };
21 eventSender.mouseDown();
22 eventSender.mouseUp();
23 });
24
25 v.addEventListener("webkitfullscreenchange", function()
26 {
27 assert_true(v.paused, "paused state before click");
28 v.click();
29 assert_false(v.paused, "paused state after click");
30 t.done();
31 });
32 });
33 </script>
OLDNEW
« 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