blob: 89f15b13c451ecc0c1c146f28227ee83b45b8694 [file] [log] [blame]
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00001<html>
2<head>
3<script>
4var counter = 0;
5
6function 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
15function 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>