summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/inspector/network-request-query-string.html
blob: 39f40fd672f05b8e6b917fe8847ecd6fc510bca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
function test() {
    WebInspector.showPanel("network");

    function checkURL(url)
    {
        var request = new WebInspector.NetworkRequest(url, url, "", "", "");
        InspectorTest.addResult("URL: " + url);
        InspectorTest.addResult("Query: " + request.queryString());
        InspectorTest.addResult("");
    }

    checkURL("http://webkit.org");
    checkURL("http://webkit.org?foo");
    checkURL("http://webkit.org#bar");
    checkURL("http://webkit.org?foo#bar");
    checkURL("http://webkit.org?foo=bar?baz");
    checkURL("http://webkit.org?foo?bar#baz");

    InspectorTest.completeTest();
}

</script>
</head>
<body onload="runTest()">
<p>Tests query string extraction.</p>
</body>
</html>