| 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 type="text/javascript"> | 4 <script type="text/javascript"> | 
| 5 | 5 | 
| 6 var test = function() | 6 var test = function() | 
| 7 { | 7 { | 
| 8     var logView = WebInspector.panel("network")._networkLogView; | 8     var logView = WebInspector.panel("network")._networkLogView; | 
| 9 | 9 | 
| 10     function newRequest(headers, data, opt_url) | 10     function newRequest(headers, data, opt_url) | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 31 | 31 | 
| 32     dumpRequest({}) | 32     dumpRequest({}) | 
| 33     dumpRequest({}, "123"); | 33     dumpRequest({}, "123"); | 
| 34     dumpRequest({"Content-Type": "application/x-www-form-urlencoded"}, "1&b"); | 34     dumpRequest({"Content-Type": "application/x-www-form-urlencoded"}, "1&b"); | 
| 35     dumpRequest({"Content-Type": "application/json"}, "{\"a\":1}"); | 35     dumpRequest({"Content-Type": "application/json"}, "{\"a\":1}"); | 
| 36     dumpRequest({"Content-Type": "application/binary"}, "1234\r\n\x30\x30\2\3\4\
    5\'\"!");  // expected content length: 15 | 36     dumpRequest({"Content-Type": "application/binary"}, "1234\r\n\x30\x30\2\3\4\
    5\'\"!");  // expected content length: 15 | 
| 37     dumpRequest({"Content-Type": "application/binary"}, "1234\r\n\1\x30\x30\2\3\
    4\5\'\"!");  // expected content length: 16 | 37     dumpRequest({"Content-Type": "application/binary"}, "1234\r\n\1\x30\x30\2\3\
    4\5\'\"!");  // expected content length: 16 | 
| 38     dumpRequest({"Content-Type": "application/binary"}, "\x7F\x80\x90\xFF\u0009\
    u0700"); | 38     dumpRequest({"Content-Type": "application/binary"}, "\x7F\x80\x90\xFF\u0009\
    u0700"); | 
| 39     dumpRequest({}, "", "http://labs.ft.com/?querystring=[]{}");  // Character r
    ange symbols must be escaped (http://crbug.com/265449). | 39     dumpRequest({}, "", "http://labs.ft.com/?querystring=[]{}");  // Character r
    ange symbols must be escaped (http://crbug.com/265449). | 
| 40     dumpRequest({"Content-Type": "application/binary"}, "%PATH%$PATH"); | 40     dumpRequest({"Content-Type": "application/binary"}, "%PATH%$PATH"); | 
|  | 41     dumpRequest({":host": "h", "version": "v"}); | 
| 41 | 42 | 
| 42     InspectorTest.completeTest(); | 43     InspectorTest.completeTest(); | 
| 43 } | 44 } | 
| 44 | 45 | 
| 45 </script> | 46 </script> | 
| 46 </head> | 47 </head> | 
| 47 <body onload="runTest()"> | 48 <body onload="runTest()"> | 
| 48 <p>Tests curl command generation</p> | 49 <p>Tests curl command generation</p> | 
| 49 </body> | 50 </body> | 
| 50 </html> | 51 </html> | 
| OLD | NEW | 
|---|