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

Side by Side Diff: chrome/test/data/device_orientation/enable_switch_test.html

Issue 3136038: Enable device orientation by default. (Closed)
Patch Set: Rebase and address Pawel's comment Created 10 years, 3 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 | « chrome/renderer/render_thread.cc ('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
(Empty)
1 <html>
2 <head>
3 <title>DeviceOrientationEnableSwitchTest</title>
4 <script type="text/javascript">
5 var failed = false;
6 function pass() {
7 if (failed)
8 return;
9 document.getElementById('status').innerHTML = 'PASS';
10 document.location = '#pass';
11 }
12 function fail() {
13 document.getElementById('status').innerHTML = 'FAIL';
14 document.location = '#fail';
15 failed = true;
16 }
17 function run() {
18 for (var property in window) {
19 if (property == "DeviceOrientationEvent")
20 fail();
21 if (property == "ondeviceorientation")
22 fail();
23 }
24
25 pass();
26 }
27 </script>
28 </head>
29 <body onload="run()">
30 <div id="status">Running...</div>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698