blob: 2321f7c42a2eb88b5ae611bb18903c45c14b205e [file] [log] [blame]
<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>