OLD | NEW |
| (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> | |
OLD | NEW |