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

Unified Diff: LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html

Issue 261983005: Stop firing orientationchange events at pages that are not visible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify test case Created 6 years, 7 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
Index: LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html
diff --git a/LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html b/LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html
new file mode 100644
index 0000000000000000000000000000000000000000..fe5a5459fb29bd0984bc2af8661d6928ff01b222
--- /dev/null
+++ b/LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../resources/js-test.js"></script>
+<script>
+description("Tests that screen.lockOrientation() does not work when not in fullscreen.");
+
+[ 'any', 'portrait', 'landscape', 'portrait-primary', 'portrait-secondary',
+ 'landscape-primary', 'landscape-secondary' ].forEach(function(orientation) {
+ shouldBeFalse("screen.lockOrientation('" + orientation + "')");
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698