| 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);
|
|
|