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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 </head> 4 </head>
5 <script> 5 <script>
6 screen.orientation.onchange = function() { 6 window.onorientationchange = function() {
7 document.location.hash = '#' + screen.orientation.angle; 7 document.location.hash = '#' + window.orientation;
8 }; 8 };
9 9
10 document.location.hash = '#ready'; 10 document.location.hash = '#ready';
11 </script> 11 </script>
12 <body> 12 <body>
13 <div>Starting...</div> 13 <div>Starting...</div>
14 </body> 14 </body>
15 </html> 15 </html>
OLDNEW
« 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