Source/WebCore: https://bugs.webkit.org/show_bug.cgi?id=84649
[WebKit-https.git] / LayoutTests / http / tests / cache / cancel-during-failure-crash.html
1 <html>
2 <body>
3 <script>
4 if (window.layoutTestController) {
5     layoutTestController.dumpAsText();
6     layoutTestController.waitUntilDone();
7 }
8
9 var img = new Image();
10 img.onerror = function() {
11     // cancel resource load within didFail()
12     window.stop();
13     document.body.appendChild(document.createTextNode("PASS"));
14     layoutTestController.notifyDone();
15 }
16
17 // Port 7 will likely refuse the connection, causing a didFail()
18 // from the network stack.
19 img.src = "http://localhost:7";
20 </script>
21 </body>
22 </html>