OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
4 <script src="../../http/tests/inspector/timeline-test.js"></script> | |
5 <script> | |
6 | |
7 function performActions() | |
8 { | |
9 var script = document.createElement("script"); | |
10 script.src = "timeline-script-tag-2.js"; | |
11 document.body.appendChild(script); | |
12 } | |
13 | |
14 function test() | |
15 { | |
16 InspectorTest.startTimeline(step1); | |
17 function step1() | |
18 { | |
19 InspectorTest.addConsoleSniffer(step2); | |
20 InspectorTest.evaluateInPage("performActions()"); | |
21 } | |
22 | |
23 function step2() | |
24 { | |
25 InspectorTest.stopTimeline(step3); | |
26 } | |
27 | |
28 function step3() | |
29 { | |
30 InspectorTest.printTimelineRecords("EvaluateScript"); | |
31 InspectorTest.completeTest(); | |
32 } | |
33 } | |
34 | |
35 </script> | |
36 </head> | |
37 | |
38 <body onload="runTest()"> | |
39 <p> | |
40 Tests the Timeline API instrumentation of a script tag with an external script. | |
41 </p> | |
42 | |
43 </body> | |
44 </html> | |
OLD | NEW |