| 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 function performActions() | 9 function performActions() |
| 10 { | 10 { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 InspectorTest.waitForRecordType("TimerRemove", finish); | 31 InspectorTest.waitForRecordType("TimerRemove", finish); |
| 32 | 32 |
| 33 var linkifier = new WebInspector.Linkifier(); | 33 var linkifier = new WebInspector.Linkifier(); |
| 34 | 34 |
| 35 var recordTypes = ["TimerInstall", "TimerRemove", "FunctionCall"]; | 35 var recordTypes = ["TimerInstall", "TimerRemove", "FunctionCall"]; |
| 36 function formatter(record) | 36 function formatter(record) |
| 37 { | 37 { |
| 38 if (recordTypes.indexOf(record.type()) === -1) | 38 if (recordTypes.indexOf(record.type()) === -1) |
| 39 return; | 39 return; |
| 40 | 40 |
| 41 var details = WebInspector.TimelineUIUtils.buildDetailsNode(record, link
ifier, false); | 41 var details = WebInspector.TimelineUIUtilsImpl.buildDetailsNode(record,
linkifier, false); |
| 42 if (details) | 42 if (details) |
| 43 InspectorTest.addResult("details.textContent for " + record.type() +
" event: '" + details.textContent + "'"); | 43 InspectorTest.addResult("details.textContent for " + record.type() +
" event: '" + details.textContent + "'"); |
| 44 } | 44 } |
| 45 | 45 |
| 46 function finish() | 46 function finish() |
| 47 { | 47 { |
| 48 InspectorTest.printTimelinePresentationRecords(null, formatter); | 48 InspectorTest.printTimelinePresentationRecords(null, formatter); |
| 49 InspectorTest.completeTest(); | 49 InspectorTest.completeTest(); |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| 53 if (!window.testRunner) | 53 if (!window.testRunner) |
| 54 setTimeout(performActions, 2000); | 54 setTimeout(performActions, 2000); |
| 55 | 55 |
| 56 </script> | 56 </script> |
| 57 </head> | 57 </head> |
| 58 | 58 |
| 59 <body onload="runTest()"> | 59 <body onload="runTest()"> |
| 60 <p> | 60 <p> |
| 61 Test that checks location resolving mechanics for TimerInstall TimerRemove and F
unctionCall events with scriptId. | 61 Test that checks location resolving mechanics for TimerInstall TimerRemove and F
unctionCall events with scriptId. |
| 62 </p><p> | 62 </p><p> |
| 63 It expects two FunctionCall for InjectedScript, two TimerInstall events, two Fun
ctionCall events and one TimerRemove event to be logged with performActions.js s
cript name and some line number. | 63 It expects two FunctionCall for InjectedScript, two TimerInstall events, two Fun
ctionCall events and one TimerRemove event to be logged with performActions.js s
cript name and some line number. |
| 64 </p> | 64 </p> |
| 65 </body> | 65 </body> |
| 66 </html> | 66 </html> |
| OLD | NEW |