OLD | NEW |
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 Loading... |
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> |
OLD | NEW |