1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/orientation/bug507902-frame.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <title>Frame for watchPosition </title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 +</head> 1.10 +<body> 1.11 +<script type="text/javascript"> 1.12 + 1.13 +var ok = window.parent.ok; 1.14 +var SimpleTest = window.parent.SimpleTest; 1.15 + 1.16 +function boom() 1.17 +{ 1.18 + window.addEventListener("unload", function(){}, false); 1.19 + window.addEventListener("devicemotion", function(){}, false); 1.20 + location = "data:text/html,2"; 1.21 + 1.22 + ok(1, "leak will be at the end of mochitests. so pass."); 1.23 + SimpleTest.finish(); 1.24 +} 1.25 + 1.26 +SimpleTest.waitForExplicitFinish(); 1.27 + 1.28 +window.addEventListener("load", function() { setTimeout(boom, 0); }, false); 1.29 + 1.30 +</script> 1.31 +</body> 1.32 +</html> 1.33 +