|
1 <!DOCTYPE html> |
|
2 <html class="reftest-wait"> |
|
3 <head> |
|
4 <meta charset="UTF-8"> |
|
5 <script> |
|
6 |
|
7 function f() |
|
8 { |
|
9 function spin() { |
|
10 for (var i = 0; i < 8; ++i) { |
|
11 var x = new XMLHttpRequest(); |
|
12 x.open('GET', 'data:text/html,' + i, false); |
|
13 x.send(); |
|
14 } |
|
15 } |
|
16 |
|
17 window.addEventListener("popstate", spin, false); |
|
18 window.close(); |
|
19 window.location = "#c"; |
|
20 finish(); |
|
21 } |
|
22 |
|
23 function start() |
|
24 { |
|
25 var html = "<script>" + f + "<\/script><body onload=f()>"; |
|
26 var win = window.open("data:text/html," + encodeURIComponent(html), null, "width=300,height=300"); |
|
27 win.finish = function() { document.documentElement.removeAttribute("class"); }; |
|
28 } |
|
29 |
|
30 </script> |
|
31 </head> |
|
32 <body onload="start();"></body> |
|
33 </html> |