| 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 InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.Requ
estFinished, onRequestFinished); | 15 InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.Requ
estFinished, onRequestFinished); |
| 16 | 16 |
| 17 function onRequestFinished(event) | 17 function onRequestFinished(event) |
| 18 { | 18 { |
| 19 var request = event.data; | 19 var request = event.data; |
| 20 InspectorTest.addResult(request.url); | 20 InspectorTest.addResult(request.url()); |
| 21 InspectorTest.addObject(new SDK.HAREntry(request).build(), InspectorTest
.HARPropertyFormatters); | 21 InspectorTest.addObject(new SDK.HAREntry(request).build(), InspectorTest
.HARPropertyFormatters); |
| 22 InspectorTest.completeTest(); | 22 InspectorTest.completeTest(); |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 | 25 |
| 26 </script> | 26 </script> |
| 27 </head> | 27 </head> |
| 28 <body onload="runTest()"> | 28 <body onload="runTest()"> |
| 29 <p> | 29 <p> |
| 30 Tests that resources panel shows form data parameters. | 30 Tests that resources panel shows form data parameters. |
| 31 </p> | 31 </p> |
| 32 <form target="target-iframe" method="POST" action="http://127.0.0.1:8000/inspect
or/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=#fragmentParam1
=fragmentValue1&fragmentParam2="> | 32 <form target="target-iframe" method="POST" action="http://127.0.0.1:8000/inspect
or/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=#fragmentParam1
=fragmentValue1&fragmentParam2="> |
| 33 <input name="formParam1" value="formValue1"> | 33 <input name="formParam1" value="formValue1"> |
| 34 <input name="formParam2"> | 34 <input name="formParam2"> |
| 35 <input id="submit" type="submit"> | 35 <input id="submit" type="submit"> |
| 36 </form> | 36 </form> |
| 37 <iframe name="target-iframe"></iframe> | 37 <iframe name="target-iframe"></iframe> |
| 38 </body> | 38 </body> |
| 39 </html> | 39 </html> |
| OLD | NEW |