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

Unified Diff: content/test/data/screen_orientation/screen_orientation_windoworientationchange.html

Issue 431103002: Add integration tests for window.orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen_orientation_integration
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « content/test/data/screen_orientation/screen_orientation_screenorientationchange.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/screen_orientation/screen_orientation_windoworientationchange.html
diff --git a/content/test/data/screen_orientation/screen_orientation_orientationchange.html b/content/test/data/screen_orientation/screen_orientation_windoworientationchange.html
similarity index 58%
rename from content/test/data/screen_orientation/screen_orientation_orientationchange.html
rename to content/test/data/screen_orientation/screen_orientation_windoworientationchange.html
index 9db63856cb6cd64a3d4ab59b0ab2a070ff503a15..b29599f6fa13be654eca33876c08d16e71bea4c6 100644
--- a/content/test/data/screen_orientation/screen_orientation_orientationchange.html
+++ b/content/test/data/screen_orientation/screen_orientation_windoworientationchange.html
@@ -3,8 +3,8 @@
<head>
</head>
<script>
- screen.orientation.onchange = function() {
- document.location.hash = '#' + screen.orientation.angle;
+ window.onorientationchange = function() {
+ document.location.hash = '#' + window.orientation;
};
document.location.hash = '#ready';
« no previous file with comments | « content/test/data/screen_orientation/screen_orientation_screenorientationchange.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698