commit-queue@webkit.org | 2bb13e3 | 2011-01-06 16:31:47 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <script> |
| 4 | var counter = 0; |
| 5 | |
| 6 | function loadJSFile(){ |
| 7 | var i = document.createElement('img') |
| 8 | i.setAttribute("src", "resources/apple.jpg?counter=" + counter); |
| 9 | |
| 10 | counter++; |
| 11 | |
| 12 | document.getElementById("images").appendChild(i); |
| 13 | } |
| 14 | |
| 15 | function runModal() |
| 16 | { |
| 17 | loadJSFile(); |
| 18 | |
| 19 | alert("Deferring loads"); |
| 20 | } |
| 21 | </script> |
| 22 | </head> |
| 23 | |
| 24 | <body> |
| 25 | |
| 26 | <input id="button" type="button" value="click me" onclick="runModal()"/> |
| 27 | |
| 28 | <div id="images"></div> |
| 29 | |
| 30 | <p>Click the above button to start loading an image and then open an alert() box. For the test to pass there should be no crash when closing the alert box.</p> |
| 31 | |
| 32 | </body> |
| 33 | </html> |