| 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 WebInspector.TimelineModel._doNotAssignEndTime = true; | |
| 10 finishCalled = 0; | 9 finishCalled = 0; |
| 11 | 10 |
| 12 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(finish); }
); | 11 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(finish); }
); |
| 13 InspectorTest.waitForRecordType("MarkDOMContent", contentEvent); | 12 InspectorTest.waitForRecordType("MarkDOMContent", contentEvent); |
| 14 | 13 |
| 15 function contentEvent() | 14 function contentEvent() |
| 16 { | 15 { |
| 17 InspectorTest.stopTimeline(finish); | 16 InspectorTest.stopTimeline(finish); |
| 18 } | 17 } |
| 19 | 18 |
| 20 function finish() | 19 function finish() |
| 21 { | 20 { |
| 22 if (++finishCalled < 2) | 21 if (++finishCalled < 2) |
| 23 return; | 22 return; |
| 24 InspectorTest.printTimelineRecords("MarkDOMContent"); | 23 InspectorTest.printTimelineRecords("MarkDOMContent"); |
| 25 InspectorTest.completeTest(); | 24 InspectorTest.completeTest(); |
| 26 } | 25 } |
| 27 } | 26 } |
| 28 | 27 |
| 29 </script> | 28 </script> |
| 30 </head> | 29 </head> |
| 31 | 30 |
| 32 <body onload="runTest()"> | 31 <body onload="runTest()"> |
| 33 <p> | 32 <p> |
| 34 Tests the DOM content loaded event. | 33 Tests the DOM content loaded event. |
| 35 </p> | 34 </p> |
| 36 | 35 |
| 37 </body> | 36 </body> |
| 38 </html> | 37 </html> |
| OLD | NEW |