summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-withcredentials-before-open.html
blob: 6b0d2b2c3dd1069852b332ac409ebe06264a8f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
    <script src="../../resources/js-test.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>
</head>
<body>
    <div id="description"></div>
    <div id="console"></div>
</body>
</html>