| <html> |
| <head> |
| <script> |
| var results = null; |
| |
| function run() { |
| results = document.getElementById("results"); |
| window.addEventListener("deviceorientation", handleDeviceOrientation, false); |
| } |
| |
| function handleDeviceOrientation(event) { |
| results.textContent = "ERROR: Saw event in child frame."; |
| window.removeEventListener("deviceorientation", handleDeviceOrientation); |
| } |
| |
| window.addEventListener("load", run, false); |
| </script> |
| </head> |
| <body> |
| <p>We should not see an event in here.</p> |
| <p id="results">Child frame has not seen event - this is ok.</p> |
| </body> |
| </html> |