| 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 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var networkPanel = WebInspector.inspectorView.showPanel("network"); | 9 var networkPanel = WebInspector.inspectorView.showPanel("network"); |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 InspectorTest.assertEquals(request1.requestMethod, request2.requestMetho
d, "Requests have different requestMethod"); | 30 InspectorTest.assertEquals(request1.requestMethod, request2.requestMetho
d, "Requests have different requestMethod"); |
| 31 InspectorTest.assertEquals(request1.requestHeadersText, request2.request
HeadersText, "Requests have different requestHeadersText"); | 31 InspectorTest.assertEquals(request1.requestHeadersText, request2.request
HeadersText, "Requests have different requestHeadersText"); |
| 32 } | 32 } |
| 33 | 33 |
| 34 function testXHRReplay(method, url, async, user, password, headers, withCred
entials, payload, type, callback) | 34 function testXHRReplay(method, url, async, user, password, headers, withCred
entials, payload, type, callback) |
| 35 { | 35 { |
| 36 InspectorTest.resetInspectorResourcesData(step1); | 36 InspectorTest.resetInspectorResourcesData(step1); |
| 37 | 37 |
| 38 function step1() | 38 function step1() |
| 39 { | 39 { |
| 40 InspectorTest.makeXHR(method, url, async, user, password, headers, w
ithCredentials, payload, step2); | 40 InspectorTest.makeXHR(method, url, async, user, password, headers, w
ithCredentials, payload, type, step2); |
| 41 } | 41 } |
| 42 | 42 |
| 43 var originalRequest; | 43 var originalRequest; |
| 44 function step2() | 44 function step2() |
| 45 { | 45 { |
| 46 originalRequest = lastRequest(); | 46 originalRequest = lastRequest(); |
| 47 dumpRequest(originalRequest); | 47 dumpRequest(originalRequest); |
| 48 NetworkAgent.replayXHR(originalRequest.requestId); | 48 NetworkAgent.replayXHR(originalRequest.requestId); |
| 49 InspectorTest.addSniffer(WebInspector.NetworkLogView.prototype, "_ap
pendRequest", step3); | 49 InspectorTest.addSniffer(WebInspector.NetworkLogView.prototype, "_ap
pendRequest", step3); |
| 50 } | 50 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 ]); | 101 ]); |
| 102 } | 102 } |
| 103 </script> | 103 </script> |
| 104 </head> | 104 </head> |
| 105 <body onload="runTest()"> | 105 <body onload="runTest()"> |
| 106 Tests XHR replaying. | 106 Tests XHR replaying. |
| 107 <a href="https://bugs.webkit.org/show_bug.cgi?id=95187">Bug 95187</a> | 107 <a href="https://bugs.webkit.org/show_bug.cgi?id=95187">Bug 95187</a> |
| 108 </body> | 108 </body> |
| 109 </html> | 109 </html> |
| OLD | NEW |