| <p>This test checks for <a href="rdar://problem/5303567"><rdar://problem/5303567></a> REGRESSION: XMLHttpRequest.responseXML returns NULL if response MIME type is not XML -- breaks Wikipedia widget</p> |
| document.getElementById("console").appendChild(document.createTextNode(s + "\n")); |
| function logProperty(object, propertyName) |
| property = object[propertyName]; |
| if (String(property).indexOf("\n") != -1) |
| property = property.split("\n")[0] + "..."; |
| log(propertyName + ": " + property + " (" + typeof property + ")"); |
| function sendRequest(url) |
| request = new XMLHttpRequest(); |
| request.open("GET", url, false); |
| log("PASS: No exception."); |
| log("FAIL: Caught exception " + e + "."); |
| for (var i = 0; i < properties.length; i++) //> |
| logProperty(request, properties[i]); |
| if (window.layoutTestController) |
| layoutTestController.dumpAsText(); |
| test("resources/plist.app"); |