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

Side by Side Diff: LayoutTests/media/activation-behavior-fullscreen.html

Issue 867063003: Revert of Re-re-enable the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
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_true(v.paused, "paused state after click");
30 t.done();
31 });
32 });
33 </script>
OLDNEW
« 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