blob: f3c7b9e3fb28e97669c9ce7be30a07b199ccf360 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
<script>
description('This tests that the XMLHttpRequest withCredentials attribute is modifiable prior to being in the OPENED state.');
var xhr;
xhr = new XMLHttpRequest();
evalAndLog("xhr.withCredentials = true;");
evalAndLog("xhr.open('GET', 'http://mydomain');");
shouldBeTrue('xhr.withCredentials');
</script>
<script src="../js/resources/js-test-post.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
</body>
</html>