blob: 8b4511dda15a116b213ffbc4fe8377a0c1527a62 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
<script>
description('This tests that XMLHttpRequest overrideMimeType() properly handles mixed case MIME strings.');
window.jsTestIsAsync = true;
var xhr = new XMLHttpRequest(),
url = 'resources/load-icon.xhtml';
xhr.onload = function() {
shouldBeNonNull('xhr.responseXML');
finishJSTest();
};
xhr.onerror = function() {
testFailed('The XHR request to an existing resource failed: "' + url + '"');
finishJSTest();
};
xhr.open('GET', url);
xhr.overrideMimeType('Application/Xhtml+Xml');
xhr.responseType = 'document';
xhr.send(null);
</script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
</body>
</html>