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

Unified Diff: LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.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/resources/iframe-listen-orientation-change.html
diff --git a/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html b/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html
index 6d4a1e5e73e62d86751c3250307cbb9887915ff0..760d952481f8a37f4fc3245184ff42a2bb063375 100644
--- a/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html
+++ b/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<script>
- window.addEventListener("orientationchange", function() {
- parent.window.postMessage(screen.orientation, "*");
+ window.screen.orientation.addEventListener('change', function() {
+ parent.window.postMessage(screen.orientation.type, "*");
});
</script>

Powered by Google App Engine
This is Rietveld 408576698