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

Unified Diff: LayoutTests/screen_orientation/lockOrientation-bad-argument.html

Issue 366853008: [screen-orientation] Expose orientation info in OrientationInformation interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update ctor listing Created 6 years, 6 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.html
diff --git a/LayoutTests/screen_orientation/lockOrientation-bad-argument.html b/LayoutTests/screen_orientation/lockOrientation-bad-argument.html
index affd4df2706a98995ca37f3f7dd2fd96a7af27b3..350aedec369f4288e481fec863f6fcad393f1adc 100644
--- a/LayoutTests/screen_orientation/lockOrientation-bad-argument.html
+++ b/LayoutTests/screen_orientation/lockOrientation-bad-argument.html
@@ -11,7 +11,7 @@ function onOrientationChangeEvent(ev) {
}
function completeTest() {
- shouldBeEqualToString("screen.orientation", "portrait-primary");
+ shouldBeEqualToString("screen.orientation.type", "portrait-primary");
screen.unlockOrientation();
finishJSTest();
}
@@ -22,19 +22,19 @@ function typeErrorEnum(argStr) {
return "TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('" + argStr + "') is not a valid enum value.";
}
-shouldBeEqualToString("screen.orientation", "portrait-primary");
+shouldBeEqualToString("screen.orientation.type", "portrait-primary");
shouldThrow("screen.lockOrientation('invalid-orientation')", "typeErrorEnum('invalid-orientation')");
-shouldBeEqualToString("screen.orientation", "portrait-primary");
+shouldBeEqualToString("screen.orientation.type", "portrait-primary");
shouldThrow("screen.lockOrientation(null)", "typeErrorEnum('null')");
-shouldBeEqualToString("screen.orientation", "portrait-primary");
+shouldBeEqualToString("screen.orientation.type", "portrait-primary");
shouldThrow("screen.lockOrientation(undefined)", "typeErrorEnum('undefined')");
-shouldBeEqualToString("screen.orientation", "portrait-primary");
+shouldBeEqualToString("screen.orientation.type", "portrait-primary");
shouldThrow("screen.lockOrientation(123)", "typeErrorEnum('123')");
-shouldBeEqualToString("screen.orientation", "portrait-primary");
+shouldBeEqualToString("screen.orientation.type", "portrait-primary");
shouldThrow("screen.lockOrientation(window)", "typeErrorEnum('[object Window]')");
-shouldBeEqualToString("screen.orientation", "portrait-primary");
+shouldBeEqualToString("screen.orientation.type", "portrait-primary");
shouldThrow("screen.lockOrientation(['portrait-primary', 'landscape-primary'])", "typeErrorEnum('portrait-primary,landscape-primary')");
-shouldBeEqualToString("screen.orientation", "portrait-primary");
+shouldBeEqualToString("screen.orientation.type", "portrait-primary");
shouldThrow("screen.lockOrientation()", '"TypeError: Failed to execute \'lockOrientation\' on \'Screen\': 1 argument required, but only 0 present."');
// Finish asynchronously to give events a chance to fire.

Powered by Google App Engine
This is Rietveld 408576698