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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/curl-command.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 6
7 var test = function() 7 var test = function()
8 { 8 {
9 var logView = WebInspector.panels.network._networkLogView; 9 var logView = UI.panels.network._networkLogView;
10 10
11 function newRequest(headers, data, opt_url) 11 function newRequest(headers, data, opt_url)
12 { 12 {
13 var request = new WebInspector.NetworkRequest(WebInspector.targetManager .mainTarget(), 0, opt_url || 'http://example.org/path', 0, 0, 0); 13 var request = new SDK.NetworkRequest(SDK.targetManager.mainTarget(), 0, opt_url || 'http://example.org/path', 0, 0, 0);
14 request.requestMethod = data ? "POST" : "GET"; 14 request.requestMethod = data ? "POST" : "GET";
15 var headerList = []; 15 var headerList = [];
16 if (headers) { 16 if (headers) {
17 for (var i in headers) 17 for (var i in headers)
18 headerList.push({name: i, value: headers[i]}); 18 headerList.push({name: i, value: headers[i]});
19 } 19 }
20 if (data) { 20 if (data) {
21 headerList.push({name: "Content-Length", value: data.length}); 21 headerList.push({name: "Content-Length", value: data.length});
22 request.requestFormData = data; 22 request.requestFormData = data;
23 } 23 }
(...skipping 22 matching lines...) Expand all
46 46
47 InspectorTest.completeTest(); 47 InspectorTest.completeTest();
48 } 48 }
49 49
50 </script> 50 </script>
51 </head> 51 </head>
52 <body onload="runTest()"> 52 <body onload="runTest()">
53 <p>Tests curl command generation</p> 53 <p>Tests curl command generation</p>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698