summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/bugs/devicemotion_outer.html
blob: 43bcb6028ac47caf376a3bffd6ffafdce70ab127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE HTML>
<html>
<body>
<script>
var total = 50;
var loaded = 0;
for (var i = 0; i < total; i++) {
  var f = document.createElement("iframe");
  document.body.appendChild(f);
  f.onload = function() {
                    loaded++;
                    if (loaded == total - 1)
                      document.location.replace("about:blank");
	     }
  f.setAttribute('src', 'devicemotion_inner.html');
}
</script>
</body>
</html>