OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="inspector-test.js"></script> | 4 <script src="inspector-test.js"></script> |
5 <script src="network-test.js"></script> | 5 <script src="network-test.js"></script> |
6 | 6 |
7 <script> | 7 <script> |
8 | 8 |
9 function doXHR() | 9 function doXHR() |
10 { | 10 { |
(...skipping 16 matching lines...) Expand all Loading... |
27 { | 27 { |
28 InspectorTest.evaluateInPage("doXHR()", step2); | 28 InspectorTest.evaluateInPage("doXHR()", step2); |
29 } | 29 } |
30 | 30 |
31 function step2() | 31 function step2() |
32 { | 32 { |
33 function findRequestByURL(url) | 33 function findRequestByURL(url) |
34 { | 34 { |
35 var requests = InspectorTest.networkRequests(); | 35 var requests = InspectorTest.networkRequests(); |
36 for (var i = 0; i < requests.length; ++i) { | 36 for (var i = 0; i < requests.length; ++i) { |
37 if (url.test(requests[i].url)) | 37 if (url.test(requests[i].url())) |
38 return requests[i]; | 38 return requests[i]; |
39 } | 39 } |
40 } | 40 } |
41 | 41 |
42 function addCookieHeadersToRequest(request) | 42 function addCookieHeadersToRequest(request) |
43 { | 43 { |
44 request.setRequestHeaders([ | 44 request.setRequestHeaders([ |
45 { name: "Cookie", value: "a=b; $Path=/path; $Domain=example.com;
a1=b1\nc1=d1" } | 45 { name: "Cookie", value: "a=b; $Path=/path; $Domain=example.com;
a1=b1\nc1=d1" } |
46 ]); | 46 ]); |
47 | 47 |
(...skipping 20 matching lines...) Expand all Loading... |
68 | 68 |
69 </head> | 69 </head> |
70 | 70 |
71 <body onload="runTest()"> | 71 <body onload="runTest()"> |
72 <p> | 72 <p> |
73 Tests conversion of Inspector's resource representation into HAR format. | 73 Tests conversion of Inspector's resource representation into HAR format. |
74 </p> | 74 </p> |
75 | 75 |
76 </body> | 76 </body> |
77 </html> | 77 </html> |
OLD | NEW |