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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fullscreen/full-screen-orientation-change.html
diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-orientation-change.html b/third_party/WebKit/LayoutTests/fullscreen/full-screen-orientation-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b44ef67e384f99469b6ef736b4ffbcd3981270c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-orientation-change.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>Test that full screen requests are allowed when inside an orientation change handler.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<span></span>
+<script>
+
+var element = document.querySelector('span');
+
+async_test(function(t) {
+ window.screen.orientation.onchange = t.step_func(function() {
+ element.webkitRequestFullScreen();
+ });
+
+ document.onwebkitfullscreenerror = t.unreached_func("fullscreen is not accepted when orientation is changed");
+ document.onwebkitfullscreenchange = t.step_func_done();
+
+ window.testRunner.setMockScreenOrientation('landscape-primary');
+});
+
+</script>
« 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