Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xmlhttprequest / xmlhttprequest-missing-file-exception.html
blobbe20215531f5bd30019141d6fe5745ba67a834c1
1 <p>This test checks for rdar://problem/4962298 REGRESSION: Synchronous XHR for missing local file throws exception -- breaks Wikipedia widget</p>
2 <hr>
4 <pre id="console"></pre>
6 <script>
7 function log(s)
9 document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
12 function logProperty(object, propertyName)
14 var property;
15 try {
16 property = object[propertyName];
17 } catch(e) {
18 property = e;
20 log(propertyName + ": " + property + " (" + typeof property + ")");
23 function sendRequest()
25 var request = new XMLHttpRequest();
26 request.open("GET", "file:///iamthewalrus", false);
27 request.send(null);
28 return request;
31 if (window.testRunner)
32 testRunner.dumpAsText();
34 try {
35 var request = sendRequest();
37 var properties = [
38 "readyState",
39 "responseText",
40 "responseXML",
41 /* "status", -- excluded because it differs on tiger and leopard */
42 "statusText",
45 log("PASS: No exception.");
46 for (var i = 0; i < properties.length; i++) //>
47 logProperty(request, properties[i]);
48 } catch(e) {
49 log("FAIL: Caught exception " + e + ".");
51 </script>