3 <p>Test that open throws a SYNTAX_ERR exception when called with an empty method.
</p>
4 <pre id=
"result">FAIL: script didn't run or raised an unexpected exception.
</pre>
7 testRunner
.dumpAsText();
9 var result
= "FAIL: no exception was caught";
10 var req
= new XMLHttpRequest
;
12 req
.open("", "resources/print-headers.cgi", false);
14 result
= "SUCCESS: got exception " + ex
;
16 document
.getElementById("result").textContent
= result
;