| 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 type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 | 6 |
| 7 var test = function() | 7 var test = function() |
| 8 { | 8 { |
| 9 | 9 |
| 10 function dumper(record) | 10 function dumper(record) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 {"name": "baa", "ts": 3200000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, | 41 {"name": "baa", "ts": 3200000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, |
| 42 {"name": "bab", "ts": 3300000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, | 42 {"name": "bab", "ts": 3300000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, |
| 43 {"name": "ba", "ts": 3400000, "ph": "E", "tid": mainThread, "pid": p
id, "cat":"disabled-by-default.devtools.timeline", "args": {}}, | 43 {"name": "ba", "ts": 3400000, "ph": "E", "tid": mainThread, "pid": p
id, "cat":"disabled-by-default.devtools.timeline", "args": {}}, |
| 44 {"name": "bb", "ts": 3500001, "ph": "B", "tid": mainThread, "pid": p
id, "cat":"disabled-by-default.devtools.timeline", "args":{}}, | 44 {"name": "bb", "ts": 3500001, "ph": "B", "tid": mainThread, "pid": p
id, "cat":"disabled-by-default.devtools.timeline", "args":{}}, |
| 45 {"name": "bba", "ts": 3600000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, | 45 {"name": "bba", "ts": 3600000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, |
| 46 {"name": "bbb", "ts": 3700000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, | 46 {"name": "bbb", "ts": 3700000, "ph": "I", "tid": mainThread, "pi
d": pid, "cat":"disabled-by-default.devtools.timeline", "args":{}}, |
| 47 {"name": "bb", "ts": 3800000, "ph": "E", "tid": mainThread, "pid": p
id, "cat":"disabled-by-default.devtools.timeline", "args": {}}, | 47 {"name": "bb", "ts": 3800000, "ph": "E", "tid": mainThread, "pid": p
id, "cat":"disabled-by-default.devtools.timeline", "args": {}}, |
| 48 {"name": "b", "ts": 4000000, "ph": "E", "tid": mainThread, "pid": pid, "
cat":"disabled-by-default.devtools.timeline", "args": {}} | 48 {"name": "b", "ts": 4000000, "ph": "E", "tid": mainThread, "pid": pid, "
cat":"disabled-by-default.devtools.timeline", "args": {}} |
| 49 ]; | 49 ]; |
| 50 | 50 |
| 51 var model = new WebInspector.TimelineModel(new WebInspector.TimelineModel.Fi
lter()); | 51 var model = new TimelineModel.TimelineModel(new TimelineModel.TimelineModel.
Filter()); |
| 52 InspectorTest.setTraceEvents(model, InspectorTest.createTracingModel(), test
Data); | 52 InspectorTest.setTraceEvents(model, InspectorTest.createTracingModel(), test
Data); |
| 53 | 53 |
| 54 InspectorTest.addResult("DFS preorder:"); | 54 InspectorTest.addResult("DFS preorder:"); |
| 55 model.forAllRecords(dumper); | 55 model.forAllRecords(dumper); |
| 56 InspectorTest.addResult(""); | 56 InspectorTest.addResult(""); |
| 57 | 57 |
| 58 InspectorTest.addResult("DFS postorder:"); | 58 InspectorTest.addResult("DFS postorder:"); |
| 59 model.forAllRecords(null, dumper); | 59 model.forAllRecords(null, dumper); |
| 60 InspectorTest.completeTest(); | 60 InspectorTest.completeTest(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 </script> | 63 </script> |
| 64 </head> | 64 </head> |
| 65 <body onload="runTest()"> | 65 <body onload="runTest()"> |
| 66 <p>Tests TimelineModel.forAllRecords function.</p> | 66 <p>Tests TimelineModel.forAllRecords function.</p> |
| 67 </body> | 67 </body> |
| 68 </html> | 68 </html> |
| OLD | NEW |