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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/screen_orientation/lockOrientation-bad-argument-expected.txt
diff --git a/LayoutTests/screen_orientation/lockOrientation-bad-argument-expected.txt b/LayoutTests/screen_orientation/lockOrientation-bad-argument-expected.txt
index 4de1f103656ca1f3f710a56728af1e4c2811e5c8..1ce1cb91d3e186c80077e7930b285eedfa8f066e 100644
--- a/LayoutTests/screen_orientation/lockOrientation-bad-argument-expected.txt
+++ b/LayoutTests/screen_orientation/lockOrientation-bad-argument-expected.txt
@@ -4,17 +4,17 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS screen.orientation is "portrait-primary"
-PASS screen.lockOrientation('invalid-orientation') is false
+PASS screen.lockOrientation('invalid-orientation') threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('invalid-orientation') is not a valid enum value..
PASS screen.orientation is "portrait-primary"
-PASS screen.lockOrientation(null) is false
+PASS screen.lockOrientation(null) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('null') is not a valid enum value..
PASS screen.orientation is "portrait-primary"
-PASS screen.lockOrientation(undefined) is false
+PASS screen.lockOrientation(undefined) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('undefined') is not a valid enum value..
PASS screen.orientation is "portrait-primary"
-PASS screen.lockOrientation(123) is false
+PASS screen.lockOrientation(123) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('123') is not a valid enum value..
PASS screen.orientation is "portrait-primary"
-PASS screen.lockOrientation(window) is false
+PASS screen.lockOrientation(window) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('[object Window]') is not a valid enum value..
PASS screen.orientation is "portrait-primary"
-PASS screen.lockOrientation(['portrait-primary', 'landscape-primary']) is false
+PASS screen.lockOrientation(['portrait-primary', 'landscape-primary']) threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('portrait-primary,landscape-primary') is not a valid enum value..
PASS screen.orientation is "portrait-primary"
PASS screen.lockOrientation() threw exception TypeError: Failed to execute 'lockOrientation' on 'Screen': 1 argument required, but only 0 present..
PASS screen.orientation is "portrait-primary"

Powered by Google App Engine
This is Rietveld 408576698