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

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

Issue 374623002: [screen-orientation] Update implementation to match recent spec changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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-subframe.html
diff --git a/LayoutTests/screen_orientation/orientationchange-event-subframe.html b/LayoutTests/screen_orientation/orientationchange-event-subframe.html
index f64053f0c4c1ec2702d39b862c7f673abff03213..d26090b74ef6d2c47207bd6541aeeda721a6ad0a 100644
--- a/LayoutTests/screen_orientation/orientationchange-event-subframe.html
+++ b/LayoutTests/screen_orientation/orientationchange-event-subframe.html
@@ -8,7 +8,7 @@
</iframe>
<script>
- var test = async_test("Test subframes receive 'orientationchange' events");
+ var test = async_test("Test subframes receive orientation change events");
var orientations = [
'portrait-primary',
@@ -17,7 +17,7 @@
'landscape-secondary'
];
- var currentIndex = orientations.indexOf(window.screen.orientation);
+ var currentIndex = orientations.indexOf(window.screen.orientation.type);
var eventsReceived = 0;
function getNextIndex() {
@@ -30,7 +30,7 @@
}
window.onmessage = test.step_func(function (ev) {
- assert_equals(ev.data, orientations[currentIndex], "subframe receives 'orientationchange' event");
+ assert_equals(ev.data, orientations[currentIndex], "subframe receives orientation change event");
++eventsReceived;
if (eventsReceived < 4)
changeOrientation()
« no previous file with comments | « LayoutTests/screen_orientation/orientationchange-event.html ('k') | LayoutTests/screen_orientation/page-visibility.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698