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

Unified Diff: LayoutTests/screen_orientation/orientationchange-event.html

Issue 364253007: Revert of [screen-orientation] Expose orientation info in OrientationInformation interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/orientationchange-event.html
diff --git a/LayoutTests/screen_orientation/orientationchange-event.html b/LayoutTests/screen_orientation/orientationchange-event.html
index 1c797ac6fe5f6bbbe92c0bf79a02546bc433d473..54d387f6bafd57bba3d049a38888268b11bfade6 100644
--- a/LayoutTests/screen_orientation/orientationchange-event.html
+++ b/LayoutTests/screen_orientation/orientationchange-event.html
@@ -12,7 +12,7 @@
'landscape-secondary'
];
-var currentIndex = orientations.indexOf(window.screen.orientation.type);
+var currentIndex = orientations.indexOf(window.screen.orientation);
// Count the number of calls received from the EventHandler set on window.onorientationchange.
var orientationChangeEventHandlerCalls = 0;
// Count the number of calls received from the listener set with window.addEventListene().
@@ -42,7 +42,7 @@
window.testRunner.setMockScreenOrientation(orientations[getNextIndex()]);
currentIndex = getNextIndex();
- assert_equals(screen.orientation.type, orientations[currentIndex]);
+ assert_equals(screen.orientation, orientations[currentIndex]);
todo_equals(orientationChangeEventHandlerCalls, i + 1);
assert_equals(orientationChangeEventListenerCalls, i + 1);
@@ -51,7 +51,7 @@
test(function() {
window.testRunner.setMockScreenOrientation(orientations[currentIndex]);
- assert_equals(screen.orientation.type, orientations[currentIndex]);
+ assert_equals(screen.orientation, orientations[currentIndex]);
todo_equals(orientationChangeEventHandlerCalls, 4);
assert_equals(orientationChangeEventListenerCalls, 4);

Powered by Google App Engine
This is Rietveld 408576698