Unreviewed rollout r200924. Caused js/regress/string-replace-generic.html to fail.
[WebKit-https.git] / ManualTests / deviceorientation-child-frame.html
1 <html>
2 <head>
3     <script>
4     var results = null;
5
6     function run() {
7         results = document.getElementById("results");
8         window.addEventListener("deviceorientation", handleDeviceOrientation, false);
9     }
10
11     function handleDeviceOrientation(event) {
12         results.textContent = "ERROR: Saw event in child frame.";
13         window.removeEventListener("deviceorientation", handleDeviceOrientation);
14     }
15
16     window.addEventListener("load", run, false);
17     </script>
18 </head>
19 <body>
20     <p>We should not see an event in here.</p>
21     <p id="results">Child frame has not seen event - this is ok.</p>
22 </body>
23 </html>