3 <p>Test that setRequestHeader throws a SYNTAX_ERR exception when called with an empty header name.
</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
;
11 req
.open("GET", "resources/print-headers.cgi", false);
14 req
.setRequestHeader("", "DUMMY");
16 result
= "SUCCESS: got exception " + ex
;
18 document
.getElementById("result").textContent
= result
;