| 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 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var records = [ | 9 var records = [ |
| 10 {"startTime": 1000.000,"data":{ "x": 100, "y": 200, "width": 300, "heigh
t": 400 },"endTime":1099.999,"type":"Paint","children":[]}, | 10 {"startTime": 1000.000,"data":{ "x": 100, "y": 200, "width": 300, "heigh
t": 400 },"endTime":1099.999,"type":"Paint","children":[]}, |
| 11 {"startTime": 2000.000,"data":{ "x": 100, "y": 200, "width": 300, "heigh
t": 400 },"endTime":2099.999,"type":"Layout","children":[]} | 11 {"startTime": 2000.000,"data":{ "x": 100, "y": 200, "width": 300, "heigh
t": 400 },"endTime":2099.999,"type":"Layout","children":[]} |
| 12 ]; | 12 ]; |
| 13 | 13 |
| 14 InspectorTest.loadTimelineRecords(records); | 14 InspectorTest.loadTimelineRecords(records); |
| 15 | 15 |
| 16 var rootRecord = InspectorTest.timelinePresentationModel().rootRecord(); | 16 var rootRecord = InspectorTest.timelinePresentationModel().rootRecord(); |
| 17 InspectorTest.dumpTimelineRecord(rootRecord); | 17 InspectorTest.dumpPresentationRecord(rootRecord); |
| 18 InspectorTest.completeTest(); | 18 InspectorTest.completeTest(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 </script> | 21 </script> |
| 22 </head> | 22 </head> |
| 23 | 23 |
| 24 <body onload="runTest()"> | 24 <body onload="runTest()"> |
| 25 <p> | 25 <p> |
| 26 Test timeline compatibility with logs recorded by newer and older verions of tim
eline</a> | 26 Test timeline compatibility with logs recorded by newer and older verions of tim
eline</a> |
| 27 </p> | 27 </p> |
| 28 | 28 |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |