summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/xhr-failure-behind-alert.html
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests/xhr-failure-behind-alert.html')
-rw-r--r--WebCore/manual-tests/xhr-failure-behind-alert.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/manual-tests/xhr-failure-behind-alert.html b/WebCore/manual-tests/xhr-failure-behind-alert.html
new file mode 100644
index 0000000..23b2a83
--- /dev/null
+++ b/WebCore/manual-tests/xhr-failure-behind-alert.html
@@ -0,0 +1,10 @@
+Connecting to a server that doesn't respond.
+Run this from a local file to avoid cross-origin code path.
+
+<script>
+var req = new XMLHttpRequest;
+req.open("GET", "http://127.0.0.1:7", true);
+req.send();
+req.onerror = function() { document.write("onerror<br>"); }
+alert("PASSED if no crash or assertion failure");
+</script>