| 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/timeline-test.js"></script> | 4 <script src="../../http/tests/inspector/timeline-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 var scriptUrl = "timeline-network-resource.js"; | 7 var scriptUrl = "timeline-network-resource.js"; |
| 8 | 8 |
| 9 function performActions(callback) | 9 function performActions(callback) |
| 10 { | 10 { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 model.forAllRecords(format); | 49 model.forAllRecords(format); |
| 50 InspectorTest.completeTest(); | 50 InspectorTest.completeTest(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 function printRecord(record) | 53 function printRecord(record) |
| 54 { | 54 { |
| 55 InspectorTest.addResult(""); | 55 InspectorTest.addResult(""); |
| 56 InspectorTest.printTimelineRecordProperties(record); | 56 InspectorTest.printTimelineRecordProperties(record); |
| 57 InspectorTest.addResult("Text details for " + record.type() + ": " + Web
Inspector.TimelineUIUtils.buildDetailsTextForTraceEvent(record.traceEvent())); |
| 57 } | 58 } |
| 58 | 59 |
| 59 function printSend(record) | 60 function printSend(record) |
| 60 { | 61 { |
| 61 printRecord(record); | 62 printRecord(record); |
| 62 var data = record.traceEvent().args["data"]; | 63 var data = record.traceEvent().args["data"]; |
| 63 requestId = data.requestId; | 64 requestId = data.requestId; |
| 64 if (data.url === undefined) | 65 if (data.url === undefined) |
| 65 InspectorTest.addResult("* No 'url' property in record"); | 66 InspectorTest.addResult("* No 'url' property in record"); |
| 66 else if (data.url.indexOf(scriptUrl) === -1) | 67 else if (data.url.indexOf(scriptUrl) === -1) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 90 | 91 |
| 91 </script> | 92 </script> |
| 92 </head> | 93 </head> |
| 93 | 94 |
| 94 <body onload="runTest()"> | 95 <body onload="runTest()"> |
| 95 <p> | 96 <p> |
| 96 Tests the Timeline API instrumentation of a network resource load | 97 Tests the Timeline API instrumentation of a network resource load |
| 97 </p> | 98 </p> |
| 98 </body> | 99 </body> |
| 99 </html> | 100 </html> |
| OLD | NEW |