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

Side by Side Diff: LayoutTests/screen_orientation/lockOrientation-bad-array-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 lockOrientation() returns false on bad orientation value in array argument. 1 Validates that lockOrientation() returns false on bad orientation value in array argument.
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(['portrait-primary', 'invalid-orientation']) is fals e 7 PASS screen.lockOrientation(['portrait-primary', 'invalid-orientation']) threw e xception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primary,invalid-orientation') is not a valid enum value..
8 PASS screen.lockOrientation(['portrait-primary', null]) is false 8 PASS screen.lockOrientation(['portrait-primary', null]) threw exception TypeErro r: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-prima ry,') is not a valid enum value..
9 PASS screen.lockOrientation(['portrait-primary', undefined]) is false 9 PASS screen.lockOrientation(['portrait-primary', undefined]) threw exception Typ eError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait- primary,') is not a valid enum value..
10 PASS screen.lockOrientation(['portrait-primary', 123]) is false 10 PASS screen.lockOrientation(['portrait-primary', 123]) threw exception TypeError : Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primar y,123') is not a valid enum value..
11 PASS screen.lockOrientation(['portrait-primary', window]) is false 11 PASS screen.lockOrientation(['portrait-primary', window]) threw exception TypeEr ror: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-pri mary,[object Window]') is not a valid enum value..
12 PASS screen.orientation is "portrait-primary" 12 PASS screen.orientation is "portrait-primary"
13 PASS successfullyParsed is true 13 PASS successfullyParsed is true
14 14
15 TEST COMPLETE 15 TEST COMPLETE
16 16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698