Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector / resource-parameters.html
blobfefbabe1fe28f87c3e048d990686fd322018be0b
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4 <script src="network-test.js"></script>
6 <script>
7 function submit()
9 document.getElementById("submit").click();
12 function test()
14 InspectorTest.evaluateInPage("submit()");
15 InspectorTest.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestFinished, onRequestFinished);
17 function onRequestFinished(event)
19 var request = event.data;
20 if (request.url !== "http://localhost:8000/inspector/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=")
21 return;
22 InspectorTest.addObject(new WebInspector.HAREntry(request).build(), InspectorTest.HARPropertyFormatters);
23 InspectorTest.completeTest();
27 </script>
28 </head>
29 <body onload="runTest()">
30 <p>
31 Tests that resources panel shows form data parameters.
32 </p>
33 <form target="target-iframe" method="POST" action="http://localhost:8000/inspector/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=#fragmentParam1=fragmentValue1&fragmentParam2=">
34 <input name="formParam1" value="formValue1">
35 <input name="formParam2">
36 <input id="submit" type="submit">
37 </form>
38 <iframe name="target-iframe"></iframe>
39 </body>
40 </html>