| OLD | NEW |
| 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 var test = function() | 8 var test = function() |
| 9 { | 9 { |
| 10 function step1() | 10 function step1() |
| 11 { | 11 { |
| 12 InspectorTest.makeSimpleXHR("GET", "resources/binary.data", false, step2
); | 12 InspectorTest.makeSimpleXHR("GET", "resources/binary.data", false, step2
); |
| 13 } | 13 } |
| 14 | 14 |
| 15 function step2() | 15 function step2() |
| 16 { | 16 { |
| 17 var writer = new WebInspector.HARWriter(); | 17 var writer = new Network.HARWriter(); |
| 18 var stream = new InspectorTest.StringOutputStream(onSaved); | 18 var stream = new InspectorTest.StringOutputStream(onSaved); |
| 19 writer.write(stream, InspectorTest.networkRequests(), new WebInspector.P
rogress()); | 19 writer.write(stream, InspectorTest.networkRequests(), new Common.Progres
s()); |
| 20 } | 20 } |
| 21 | 21 |
| 22 function dumpContent(content) | 22 function dumpContent(content) |
| 23 { | 23 { |
| 24 if (!content) { | 24 if (!content) { |
| 25 InspectorTest.addResult(" NOT FOUND"); | 25 InspectorTest.addResult(" NOT FOUND"); |
| 26 return; | 26 return; |
| 27 } | 27 } |
| 28 var propertyNames = Object.keys(content); | 28 var propertyNames = Object.keys(content); |
| 29 propertyNames.sort(); | 29 propertyNames.sort(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 </head> | 68 </head> |
| 69 | 69 |
| 70 <body onload="runTest()"> | 70 <body onload="runTest()"> |
| 71 <p> | 71 <p> |
| 72 Tests conversion of Inspector's resource representation into HAR format. | 72 Tests conversion of Inspector's resource representation into HAR format. |
| 73 </p> | 73 </p> |
| 74 | 74 |
| 75 </body> | 75 </body> |
| 76 </html> | 76 </html> |
| OLD | NEW |