OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="inspector-test.js"></script> | 3 <script src="inspector-test.js"></script> |
4 <script src="network-test.js"></script> | 4 <script src="network-test.js"></script> |
5 | 5 |
6 <script> | 6 <script> |
7 function submit() | 7 function submit() |
8 { | 8 { |
9 document.getElementById("submit").click(); | 9 document.getElementById("submit").click(); |
10 } | 10 } |
11 | 11 |
12 function test() | 12 function test() |
13 { | 13 { |
14 InspectorTest.evaluateInPage("submit()"); | 14 InspectorTest.evaluateInPage("submit()"); |
15 WebInspector.networkManager.addEventListener(WebInspector.NetworkManager.Eve
ntTypes.RequestFinished, onRequestFinished); | 15 InspectorTest.networkManager.addEventListener(WebInspector.NetworkManager.Ev
entTypes.RequestFinished, onRequestFinished); |
16 | 16 |
17 function onRequestFinished(event) | 17 function onRequestFinished(event) |
18 { | 18 { |
19 var request = event.data; | 19 var request = event.data; |
20 if (request.url !== "http://localhost:8000/inspector/resources/post-targ
et.cgi?queryParam1=queryValue1&queryParam2=") | 20 if (request.url !== "http://localhost:8000/inspector/resources/post-targ
et.cgi?queryParam1=queryValue1&queryParam2=") |
21 return; | 21 return; |
22 InspectorTest.addObject(new WebInspector.HAREntry(request).build(), Insp
ectorTest.HARPropertyFormatters); | 22 InspectorTest.addObject(new WebInspector.HAREntry(request).build(), Insp
ectorTest.HARPropertyFormatters); |
23 InspectorTest.completeTest(); | 23 InspectorTest.completeTest(); |
24 } | 24 } |
25 } | 25 } |
26 | 26 |
27 </script> | 27 </script> |
28 </head> | 28 </head> |
29 <body onload="runTest()"> | 29 <body onload="runTest()"> |
30 <p> | 30 <p> |
31 Tests that resources panel shows form data parameters. | 31 Tests that resources panel shows form data parameters. |
32 </p> | 32 </p> |
33 <form target="target-iframe" method="POST" action="http://localhost:8000/inspect
or/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=#fragmentParam1
=fragmentValue1&fragmentParam2="> | 33 <form target="target-iframe" method="POST" action="http://localhost:8000/inspect
or/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=#fragmentParam1
=fragmentValue1&fragmentParam2="> |
34 <input name="formParam1" value="formValue1"> | 34 <input name="formParam1" value="formValue1"> |
35 <input name="formParam2"> | 35 <input name="formParam2"> |
36 <input id="submit" type="submit"> | 36 <input id="submit" type="submit"> |
37 </form> | 37 </form> |
38 <iframe name="target-iframe"></iframe> | 38 <iframe name="target-iframe"></iframe> |
39 </body> | 39 </body> |
40 </html> | 40 </html> |
OLD | NEW |