blob: 5b61b2be62d76ebeec3ddf5c4451e0616ff279e6 [file] [log] [blame]
<html>
<body>
<p>Test that open throws a SYNTAX_ERR exception when called with an empty method.</p>
<pre id="result">FAIL: script didn't run or raised an unexpected exception.</pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var result = "FAIL: no exception was caught";
var req = new XMLHttpRequest;
try {
req.open("", "resources/print-headers.cgi", false);
} catch (ex) {
result = "SUCCESS: got exception " + ex;
}
document.getElementById("result").textContent = result;
</script>
</body>
</html>