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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-enter-fullscreen-without-user-gesture.html

Issue 2123573002: Convert video-[enter, mouse, scales]* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-enter-fullscreen-without-user-gesture-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
1 <html> 1 <!DOCTYPE html>
2 <head> 2 <title>Test webkitRequestFullscreen() without any user gesture.</title>
3 <title>Test webkitRequestFullscreen() without any user gesture.</title> 3 <script src="../resources/testharness.js"></script>
4 <script src=media-file.js></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 5 <script src="media-file.js"></script>
6 (Please avoid writing new tests using video-test.js) --> 6 <video></video>
7 <script src=video-test.js></script> 7 <script>
8 <script> 8 async_test(function(t) {
9 function canplaythrough() 9 var video = document.querySelector("video");
10 {
11 consoleWrite("");
12 consoleWrite("* No user gesture initiated");
13 testExpected("video.paused", true);
14 run("video.webkitRequestFullscreen()");
15 waitForEvent('webkitfullscreenerror', endTest);
16 }
17 10
18 function start() 11 video.oncanplaythrough = t.step_func(function() {
19 { 12 // No user gesture initiated.
20 findMediaElement(); 13 assert_true(video.paused);
21 waitForEvent('canplaythrough', canplaythrough); 14 video.webkitRequestFullscreen();
22 video.src = findMediaFile("video", "content/test"); 15 video.onwebkitfullscreenerror = t.step_func_done();
23 } 16 });
24 </script>
25 </head>
26 17
27 <body onload="start()"> 18 video.src = findMediaFile("video", "content/test");
28 <p>Test webkitRequestFullscreen() without any user gesture.</p> 19 });
29 <video controls></video> 20 </script>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-enter-fullscreen-without-user-gesture-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698