Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / network / network-request-query-string.html
blobf0af0e727578296e0f3ae8ae63db79cd78c7afbd
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/network-test.js"></script>
5 <script>
6 function test() {
7 function checkURL(url)
9 var request = new WebInspector.NetworkRequest(WebInspector.targetManager.mainTarget(), url, url, "", "", "");
10 InspectorTest.addResult("URL: " + url);
11 InspectorTest.addResult("Query: " + request.queryString());
12 InspectorTest.addResult("");
15 checkURL("http://webkit.org");
16 checkURL("http://webkit.org?foo");
17 checkURL("http://webkit.org#bar");
18 checkURL("http://webkit.org?foo#bar");
19 checkURL("http://webkit.org?foo=bar?baz");
20 checkURL("http://webkit.org?foo?bar#baz");
22 InspectorTest.completeTest();
25 </script>
26 </head>
27 <body onload="runTest()">
28 <p>Tests query string extraction.</p>
29 </body>
30 </html>