| Differences between
and this patch
- a/LayoutTests/ChangeLog +11 lines
Lines 1-3 a/LayoutTests/ChangeLog_sec1
1
2011-04-27  Eric Seidel  <eric@webkit.org>
2
3
        Reviewed by NOBODY (OOPS!).
4
5
        Log more information when http/tests/xmlhttprequest/basic-auth.html fails
6
        https://bugs.webkit.org/show_bug.cgi?id=59651
7
8
        Very basic, but it's better than nothing.
9
10
        * http/tests/xmlhttprequest/basic-auth.html:
11
1
2011-04-26  Pavel Feldman  <pfeldman@chromium.org>
12
2011-04-26  Pavel Feldman  <pfeldman@chromium.org>
2
13
3
        Not reviewed: restore inspector test disabled in r84913.
14
        Not reviewed: restore inspector test disabled in r84913.
- a/LayoutTests/http/tests/xmlhttprequest/basic-auth.html -15 / +21 lines
Lines 17-51 a/LayoutTests/http/tests/xmlhttprequest/basic-auth.html_sec1
17
        console_messages.appendChild(item);
17
        console_messages.appendChild(item);
18
    }
18
    }
19
19
20
    function sendAndLogResponse(uid, req)
21
    {
22
        try {
23
            req.send("");
24
            log(uid + ': ' + req.responseText);
25
        } catch (e) {
26
            log(uid + ": req.send raised exception: " + e);
27
            log(uid + ": req.readyState: " + req.readyState);
28
            log(uid + ": req.status: " + req.status);
29
        }
30
    }
31
20
    // sync
32
    // sync
21
    req = new XMLHttpRequest;
33
    req = new XMLHttpRequest;
22
    req.open("GET", "resources/basic-auth/basic-auth.php?uid=sync", false, "sync", "123");
34
    req.open("GET", "resources/basic-auth/basic-auth.php?uid=sync", false, "sync", "123");
23
    req.send("");
35
    sendAndLogResponse("sync", req);
24
    log('sync: ' + req.responseText);
25
36
26
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync2"), false, "sync2", "123");
37
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync2"), false, "sync2", "123");
27
    req.send("");
38
    sendAndLogResponse("sync2", req);
28
    log('sync2: ' + req.responseText);
29
39
30
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync3").replace("http://", "http://sync3:123@"), false);
40
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync3").replace("http://", "http://sync3:123@"), false);
31
    req.send("");
41
    sendAndLogResponse("sync3", req);
32
    log('sync3: ' + req.responseText);
33
42
34
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync4").replace("http://", "http://incorrect:incorrect@"), false, "sync4", "123");
43
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync4").replace("http://", "http://incorrect:incorrect@"), false, "sync4", "123");
35
    req.send("");
44
    sendAndLogResponse("sync4", req);
36
    log('sync4: ' + req.responseText);
37
45
38
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync5").replace("http://", "http://sync5:123@"), false, undefined, undefined);
46
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync5").replace("http://", "http://sync5:123@"), false, undefined, undefined);
39
    req.send("");
47
    sendAndLogResponse("sync5", req);
40
    log('sync5: ' + req.responseText);
41
48
42
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync6").replace("http://", "http://sync6:123@"), false, undefined);
49
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync6").replace("http://", "http://sync6:123@"), false, undefined);
43
    req.send("");
50
    sendAndLogResponse("sync6", req);
44
    log('sync6: ' + req.responseText);
45
51
46
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync7").replace("http://", "http://sync7:123@"), false, undefined, "incorrect");
52
    req.open("GET", document.URL.replace("basic-auth.html", "resources/basic-auth/basic-auth.php?uid=sync7").replace("http://", "http://sync7:123@"), false, undefined, "incorrect");
47
    req.send("");
53
    sendAndLogResponse("sync7", req);
48
    log('sync7: ' + req.responseText);
49
54
50
    // async
55
    // async
51
    var asyncStep = 1;
56
    var asyncStep = 1;
Lines 99-108 a/LayoutTests/http/tests/xmlhttprequest/basic-auth.html_sec2
99
            if (window.layoutTestController)
104
            if (window.layoutTestController)
100
              layoutTestController.notifyDone();
105
              layoutTestController.notifyDone();
101
          }
106
          }
107
        } else {
108
            log("async" + asyncStep + " failed with unexpected status: " + req.status);
102
        }
109
        }
103
      }
110
      }
104
    }
111
    }
105
106
</script>
112
</script>
107
</body>
113
</body>
108
</html>
114
</html>

Return to Bug 59651