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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/js-test.js"></script>
5 <script>
6 description("Tests that screen.lockOrientation() does not work when not in fulls creen.");
7
8 [ 'any', 'portrait', 'landscape', 'portrait-primary', 'portrait-secondary',
9 'landscape-primary', 'landscape-secondary' ].forEach(function(orientation) {
10 shouldBeFalse("screen.lockOrientation('" + orientation + "')");
11 });
12 </script>
13 </body>
14 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698