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

Unified 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 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
index 42961dc4e240fb7274c53a909f6ef45fe1145002..07c9548e3b9869adb227330ac5a0901f4f894519 100644
--- a/LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt
+++ b/LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt
@@ -4,11 +4,11 @@ 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.lockOrientation(['portrait-primary', 'invalid-orientation']) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primary,invalid-orientation') is not a valid enum value..
+PASS screen.lockOrientation(['portrait-primary', null]) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primary,') is not a valid enum value..
+PASS screen.lockOrientation(['portrait-primary', undefined]) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primary,') is not a valid enum value..
+PASS screen.lockOrientation(['portrait-primary', 123]) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primary,123') is not a valid enum value..
+PASS screen.lockOrientation(['portrait-primary', window]) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primary,[object Window]') is not a valid enum value..
PASS screen.orientation is "portrait-primary"
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698