Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / network / network-request-parse-query-params.html
blobe180ea4a5ce4d9622aa255b30a05d18f36ee2aac
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 checkQuery(query)
9 var url = "http://webkit.org?" + query;
10 var request = new WebInspector.NetworkRequest(WebInspector.targetManager.mainTarget(), url, url, "", "", "");
11 InspectorTest.addResult("Query: " + request.queryString());
12 var params = request.queryParameters;
13 InspectorTest.addResult("Parameters: ");
14 for (var i = 0; i < params.length; ++i) {
15 var nameValue = params[i];
16 InspectorTest.addResult(" " + nameValue.name + ": " + nameValue.value);
18 InspectorTest.addResult("");
21 checkQuery("a=b&c=d");
22 checkQuery("a&b");
23 checkQuery("a=b=c=d");
25 InspectorTest.completeTest();
28 </script>
29 </head>
30 <body onload="runTest()">
31 <p>Tests query string parsing.</p>
32 </body>
33 </html>