Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / screen_orientation / resources / iframe-listen-orientation-change.html
index 6d4a1e5..760d952 100644 (file)
@@ -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>