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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion.html

Issue 2626553002: [Devtools][Code health] Changed NetworkRequest.url to proper getter/setter (Closed)
Patch Set: changes Created 3 years, 11 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
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698