summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/orientation/bug507902-frame.html
blob: 1acd90bcbd84812e60c3d2e672f74896e9b2de73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE HTML>
<html>
<head>
  <title>Frame for watchPosition </title>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
</head>
<body>
<script type="text/javascript">

var ok = window.parent.ok;
var SimpleTest = window.parent.SimpleTest;

function boom()
{
  window.addEventListener("unload", function(){}, false);
  window.addEventListener("devicemotion", function(){}, false);
  location = "data:text/html,2";

  ok(1, "leak will be at the end of mochitests. so pass.");
  SimpleTest.finish();
}

SimpleTest.waitForExplicitFinish();

window.addEventListener("load", function() { setTimeout(boom, 0); }, false);

</script>
</body>
</html>