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

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

Issue 241203003: Screen Orientation: fire event on Window instead of Screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@ScreenOrientationUndefined
Patch Set: fix tests Created 6 years, 8 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.html
diff --git a/LayoutTests/screen_orientation/lockOrientation-bad-array-argument.html b/LayoutTests/screen_orientation/lockOrientation-bad-array-argument.html
index 2d696be5d55e3ff079434fc1edb4d81ccab351f5..0c56955351bd8573e893ea6d48268be7ff778c7e 100644
--- a/LayoutTests/screen_orientation/lockOrientation-bad-array-argument.html
+++ b/LayoutTests/screen_orientation/lockOrientation-bad-array-argument.html
@@ -16,7 +16,7 @@ function completeTest() {
finishJSTest();
}
-screen.addEventListener("orientationchange", onOrientationChangeEvent);
+window.addEventListener("orientationchange", onOrientationChangeEvent);
function typeErrorEnum(argStr) {
return "TypeError: Failed to execute 'lockOrientation' on 'Screen': parameter 1 ('" + argStr + "') is not a valid enum value.";

Powered by Google App Engine
This is Rietveld 408576698