dom/tests/mochitest/orientation/bug507902-frame.html

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:9d3ebd523100
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Frame for watchPosition </title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 </head>
7 <body>
8 <script type="text/javascript">
9
10 var ok = window.parent.ok;
11 var SimpleTest = window.parent.SimpleTest;
12
13 function boom()
14 {
15 window.addEventListener("unload", function(){}, false);
16 window.addEventListener("devicemotion", function(){}, false);
17 location = "data:text/html,2";
18
19 ok(1, "leak will be at the end of mochitests. so pass.");
20 SimpleTest.finish();
21 }
22
23 SimpleTest.waitForExplicitFinish();
24
25 window.addEventListener("load", function() { setTimeout(boom, 0); }, false);
26
27 </script>
28 </body>
29 </html>
30

mercurial