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..bfa45a91dd6e0605207929ebdcdc4dec349502cd |
--- /dev/null |
+++ b/LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt |
@@ -0,0 +1,20 @@ |
+Validates that lockOrientation() can take an array in 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 |
+Faking device screen orientation change to 'landscape-primary'... |
+PASS Received an 'orientationchange' event. |
+PASS testEvent.type is "orientationchange" |
+PASS orientationChangeCount is 1 |
+PASS screen.orientation is "landscape-primary" |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |