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 performActions() | 7 function performActions() |
8 { | 8 { |
9 var script = document.createElement("script"); | 9 var script = document.createElement("script"); |
10 script.textContent = "function noop1() {} \n//# sourceURL=script-content.js"
; | 10 script.textContent = "function noop1() {} \n//# sourceURL=script-content.js"
; |
11 document.body.appendChild(script); | 11 document.body.appendChild(script); |
12 eval("function noop2() {} \n//# sourceURL=script-content.js"); | 12 eval("function noop2() {} \n//# sourceURL=script-content.js"); |
13 | 13 |
14 script = document.createElement("script"); | 14 script = document.createElement("script"); |
15 script.src = "timeline-script-tag-2.js"; | 15 script.src = "timeline-script-tag-2.js"; |
16 document.body.appendChild(script); | 16 document.body.appendChild(script); |
17 } | 17 } |
18 | 18 |
19 function test() | 19 function test() |
20 { | 20 { |
21 InspectorTest.performActionsAndPrint("performActions()", WebInspector.Timeli
neModel.RecordType.CompileScript); | 21 InspectorTest.performActionsAndPrint("performActions()", WebInspector.Timeli
neModel.RecordType.CompileScript); |
22 } | 22 } |
23 | 23 |
24 </script> | 24 </script> |
25 </head> | 25 </head> |
26 | 26 |
27 <body onload="runTest()"> | 27 <body onload="runTest()"> |
28 <p> | 28 <p> |
29 Tests the Timeline instrumentation for CompileScript event. | 29 Tests the Timeline instrumentation for CompileScript event. |
30 </p> | 30 </p> |
31 | 31 |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |