comparison: dom/tests/mochitest/general/497633.html
dom/tests/mochitest/general/497633.html
- branch
- TOR_BUG_9701
- changeset 8
- 97036ab72558
equal
deleted
inserted
replaced
|
1 <html> |
|
2 <head> |
|
3 </head> |
|
4 <body> |
|
5 <script> |
|
6 var t = 0; |
|
7 function doe() { |
|
8 setTimeout(function() { |
|
9 if (t == 1) { |
|
10 window.close(); |
|
11 window.opener.done(); |
|
12 } |
|
13 else { |
|
14 window.frames[0].location.reload(); |
|
15 t++; |
|
16 } |
|
17 }, 300); |
|
18 } |
|
19 </script> |
|
20 |
|
21 <iframe src="data:application/xhtml+xml;charset=utf-8,%3Chtml%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%0A%3Ciframe%2F%3E%0A%3Cframeset%20onblur%3D%22window.frameElement.parentNode.removeChild(window.frameElement)%22%20id%3D%22frame%22%2F%3E%0A%0A%3Cscript%3E%0Afunction%20doe(i)%7B%0Adocument.getElementById('frame').focus()%3B%0Adocument.getElementsByTagName('*')%5B1%5D.focus()%3B%0A%7D%0Atop.opener.SimpleTest.waitForFocus(function%20()%20setTimeout(doe%2C%20100)%2C%20top)%3B%0A%3C%2Fscript%3E%0A%3C%2Fhtml%3E" onload="doe()" id="content"></iframe> |
|
22 </body> |
|
23 </html> |
|
24 |