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

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: review comments 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('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>Test that full screen requests are allowed when inside an orientation cha nge handler.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <span></span>
6 <script>
7
8 var element = document.querySelector('span');
9
10 async_test(function(t) {
11 window.screen.orientation.onchange = t.step_func(function() {
12 element.webkitRequestFullScreen();
13 });
14
15 document.onwebkitfullscreenerror = t.unreached_func("fullscreen is not accepte d when orientation is changed");
16 document.onwebkitfullscreenchange = t.step_func_done();
17
18 window.testRunner.setMockScreenOrientation('landscape-primary');
19 });
20
21 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698