diff options
Diffstat (limited to 'dom/tests/mochitest/bugs/iframe_bug430276-2.html')
-rw-r--r-- | dom/tests/mochitest/bugs/iframe_bug430276-2.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dom/tests/mochitest/bugs/iframe_bug430276-2.html b/dom/tests/mochitest/bugs/iframe_bug430276-2.html new file mode 100644 index 000000000..0d495cc97 --- /dev/null +++ b/dom/tests/mochitest/bugs/iframe_bug430276-2.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <title></title> + <script type="application/javascript"> + new XMLHttpRequest(); + function runTest() { + document.open(); + var succeeded = true; + try { + new XMLHttpRequest(); + } catch(e) { + succeeded = false; + } + window.parent.ok(succeeded, "Creating XMLHttpRequest failed!"); + window.parent.SimpleTest.finish(); + document.close(); + } + </script> +</head> +<body onload="runTest()"> +</body> +</html> |