Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: LayoutTests/http/tests/inspector/network/network-xhr-replay.html

Issue 221833004: Cleanup inspector test expectations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698