OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 Test passes if it doesn't crash (may require libgmalloc and repeating) and this
line gets erased. | 4 Test passes if it doesn't crash (may require libgmalloc and repeating) and this
line gets erased. |
5 <script> | 5 <script> |
6 if (window.layoutTestController) { | 6 if (window.layoutTestController) { |
7 layoutTestController.dumpAsText(); | 7 layoutTestController.dumpAsText(); |
8 layoutTestController.waitUntilDone(); | 8 layoutTestController.waitUntilDone(); |
9 } | 9 } |
10 var iterationsLeft = 2; | 10 var iterationsLeft = 2; |
11 function test() | 11 function test() |
12 { | 12 { |
13 if (--iterationsLeft) { | 13 if (--iterationsLeft) { |
14 frames[0].history.go(0); | 14 frames[0].history.go(0); |
15 } else { | 15 } else { |
16 document.body.textContent = frames[0].document.body.textContent; | 16 document.body.textContent = frames[0].document.body.textContent; |
17 if (window.layoutTestController) | 17 if (window.layoutTestController) |
18 layoutTestController.notifyDone(); | 18 layoutTestController.notifyDone(); |
19 } | 19 } |
20 } | 20 } |
21 </script> | 21 </script> |
22 <iframe onload="test()"></iframe> | 22 <iframe onload="test()"></iframe> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |