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

Side by Side Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-orientation-change.html

Issue 2175863002: Allow going fullscreen during a screen orientation change handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <title>Test that full screen requests are allowed when inside an orientation cha nge handler.</title>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <span></span>
7 <script>
8
9 var element = document.querySelector('span');
10
11 async_test(function(t) {
12 window.screen.orientation.onchange = function() {
foolip 2016/07/23 00:33:54 wrap in t.step_func
mlamouri (slow - plz ping) 2016/07/25 15:54:18 Done.
13 element.webkitRequestFullScreen();
14 };
15
16 document.onwebkitfullscreenerror = t.step_func(function(e) {
foolip 2016/07/23 00:33:54 Argument e is unused, assertunreached is missing a
mlamouri (slow - plz ping) 2016/07/25 15:54:18 Done.
17 assertunreached("fullscreen is not accepted when orientation is changed");
18 t.done();
19 });
20
21 document.onwebkitfullscreenchange = t.step_func_done();
22 window.testRunner.setMockScreenOrientation('landscape-primary');
23 });
24
25 </script>
26 </body>
foolip 2016/07/23 00:33:54 There's no explicit <body>, but in any case you ca
mlamouri (slow - plz ping) 2016/07/25 15:54:18 Done. Sorry for the messy test. I should have tak
27 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('j') | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698