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

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

Issue 2758673002: [DevTools] Extract NetworkLog and HAREntry to a separate network_log module (Closed)
Patch Set: rebased Created 3 years, 9 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
48 request.responseHeaders = [ 48 request.responseHeaders = [
49 { name: "Set-Cookie", value: "x=y; Path=/path; Domain=example.co m; Discard; httpOnly; Secure; Version=1\nx1=y1; SameSite=Strict\nz2=y2; SameSite =Lax" } 49 { name: "Set-Cookie", value: "x=y; Path=/path; Domain=example.co m; Discard; httpOnly; Secure; Version=1\nx1=y1; SameSite=Strict\nz2=y2; SameSite =Lax" }
50 ]; 50 ];
51 } 51 }
52 52
53 addCookieHeadersToRequest(findRequestByURL(/inspector-test\.js$/)); 53 addCookieHeadersToRequest(findRequestByURL(/inspector-test\.js$/));
54 var log = (new SDK.HARLog(InspectorTest.networkRequests())).build(); 54 var log = (new NetworkLog.HARLog(InspectorTest.networkRequests())).build ();
55 // Filter out favicon.ico requests that only appear on certain platforms . 55 // Filter out favicon.ico requests that only appear on certain platforms .
56 log.entries = log.entries.filter(function(entry) { 56 log.entries = log.entries.filter(function(entry) {
57 return !/favicon\.ico$/.test(entry.request.url); 57 return !/favicon\.ico$/.test(entry.request.url);
58 }); 58 });
59 log.entries.sort(InspectorTest.requestURLComparer); 59 log.entries.sort(InspectorTest.requestURLComparer);
60 InspectorTest.addObject(log, InspectorTest.HARPropertyFormattersWithSize ); 60 InspectorTest.addObject(log, InspectorTest.HARPropertyFormattersWithSize );
61 var pageTimings = log.pages[0].pageTimings; 61 var pageTimings = log.pages[0].pageTimings;
62 InspectorTest.completeTest(); 62 InspectorTest.completeTest();
63 } 63 }
64 } 64 }
65 65
66 </script> 66 </script>
67 67
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