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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/curl-command.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script> 3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script src="../http/tests/inspector/network-test.js"></script> 4 <script src="../http/tests/inspector/network-test.js"></script>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6
7 var test = function() 6 var test = function()
8 { 7 {
9 var logView = UI.panels.network._networkLogView; 8 var logView = UI.panels.network._networkLogView;
10 9
11 function newRequest(headers, data, opt_url) 10 function newRequest(headers, data, opt_url)
12 { 11 {
13 var request = new SDK.NetworkRequest(SDK.targetManager.mainTarget(), 0, opt_url || 'http://example.org/path', 0, 0, 0); 12 var request = new SDK.NetworkRequest(SDK.targetManager.mainTarget(), 0, opt_url || 'http://example.org/path', 0, 0, 0);
14 request.requestMethod = data ? "POST" : "GET"; 13 request.requestMethod = data ? "POST" : "GET";
15 var headerList = []; 14 var headerList = [];
16 if (headers) { 15 if (headers) {
(...skipping 29 matching lines...) Expand all
46 45
47 InspectorTest.completeTest(); 46 InspectorTest.completeTest();
48 } 47 }
49 48
50 </script> 49 </script>
51 </head> 50 </head>
52 <body onload="runTest()"> 51 <body onload="runTest()">
53 <p>Tests curl command generation</p> 52 <p>Tests curl command generation</p>
54 </body> 53 </body>
55 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698