1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/bugs/devicemotion_outer.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<body> 1.7 +<script> 1.8 +var total = 50; 1.9 +var loaded = 0; 1.10 +for (var i = 0; i < total; i++) { 1.11 + var f = document.createElement("iframe"); 1.12 + document.body.appendChild(f); 1.13 + f.onload = function() { 1.14 + loaded++; 1.15 + if (loaded == total - 1) 1.16 + document.location.replace("about:blank"); 1.17 + } 1.18 + f.setAttribute('src', 'devicemotion_inner.html'); 1.19 +} 1.20 +</script> 1.21 +</body> 1.22 +</html>