3 <script src=
"inspector-test.js"></script>
4 <script src=
"network-test.js"></script>
9 document
.getElementById("submit").click();
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=")
22 InspectorTest
.addObject(new WebInspector
.HAREntry(request
).build(), InspectorTest
.HARPropertyFormatters
);
23 InspectorTest
.completeTest();
29 <body onload=
"runTest()">
31 Tests that resources panel shows form data parameters.
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">
38 <iframe name=
"target-iframe"></iframe>