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

Side by Side Diff: LayoutTests/screen_orientation/lockOrientation-bad-argument-expected.txt

Issue 204653002: Screen Orientation: use OrientationLockType enum for lockOrientation(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@screen_orientation_type
Patch Set: Created 6 years, 9 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
OLDNEW
1 Validates that screen.lockOrientation() returns false on bad input 1 Validates that screen.lockOrientation() returns false on bad input
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS screen.orientation is "portrait-primary" 6 PASS screen.orientation is "portrait-primary"
7 PASS screen.lockOrientation('invalid-orientation') is false 7 PASS screen.lockOrientation('invalid-orientation') threw exception TypeError: Fa iled to execute 'lockOrientation' on 'Screen': parameter 1 ('invalid-orientation ') is not a valid enum value..
8 PASS screen.orientation is "portrait-primary" 8 PASS screen.orientation is "portrait-primary"
9 PASS screen.lockOrientation(null) is false 9 PASS screen.lockOrientation(null) threw exception TypeError: Failed to execute ' lockOrientation' on 'Screen': parameter 1 ('null') is not a valid enum value..
10 PASS screen.orientation is "portrait-primary" 10 PASS screen.orientation is "portrait-primary"
11 PASS screen.lockOrientation(undefined) is false 11 PASS screen.lockOrientation(undefined) threw exception TypeError: Failed to exec ute 'lockOrientation' on 'Screen': parameter 1 ('undefined') is not a valid enum value..
12 PASS screen.orientation is "portrait-primary" 12 PASS screen.orientation is "portrait-primary"
13 PASS screen.lockOrientation(123) is false 13 PASS screen.lockOrientation(123) threw exception TypeError: Failed to execute 'l ockOrientation' on 'Screen': parameter 1 ('123') is not a valid enum value..
14 PASS screen.orientation is "portrait-primary" 14 PASS screen.orientation is "portrait-primary"
15 PASS screen.lockOrientation(window) is false 15 PASS screen.lockOrientation(window) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('[object Window]') is not a valid e num value..
16 PASS screen.orientation is "portrait-primary" 16 PASS screen.orientation is "portrait-primary"
17 PASS screen.lockOrientation(['portrait-primary', 'landscape-primary']) is false 17 PASS screen.lockOrientation(['portrait-primary', 'landscape-primary']) threw exc eption TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ( 'portrait-primary,landscape-primary') is not a valid enum value..
18 PASS screen.orientation is "portrait-primary" 18 PASS screen.orientation is "portrait-primary"
19 PASS screen.lockOrientation() threw exception TypeError: Failed to execute 'lock Orientation' on 'Screen': 1 argument required, but only 0 present.. 19 PASS screen.lockOrientation() threw exception TypeError: Failed to execute 'lock Orientation' on 'Screen': 1 argument required, but only 0 present..
20 PASS screen.orientation is "portrait-primary" 20 PASS screen.orientation is "portrait-primary"
21 PASS successfullyParsed is true 21 PASS successfullyParsed is true
22 22
23 TEST COMPLETE 23 TEST COMPLETE
24 24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698