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

Unified Diff: LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt

Issue 171683015: Screen Orientation API: Add support for lockOrientation() / unlockOrientation() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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-bad-array-argument-expected.txt
diff --git a/LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt b/LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..42961dc4e240fb7274c53a909f6ef45fe1145002
--- /dev/null
+++ b/LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt
@@ -0,0 +1,16 @@
+Validates that lockOrientation() returns false on bad orientation value in array argument.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS screen.orientation is "portrait-primary"
+PASS screen.lockOrientation(['portrait-primary', 'invalid-orientation']) is false
+PASS screen.lockOrientation(['portrait-primary', null]) is false
+PASS screen.lockOrientation(['portrait-primary', undefined]) is false
+PASS screen.lockOrientation(['portrait-primary', 123]) is false
+PASS screen.lockOrientation(['portrait-primary', window]) is false
+PASS screen.orientation is "portrait-primary"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698