| <html> |
| <head> |
| <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| <script src="../../../http/tests/inspector/timeline-test.js"></script> |
| <script> |
| |
| function performActions() |
| { |
| var script = document.createElement("script"); |
| script.textContent = "function noop1() {} \n//# sourceURL=script-content.js"; |
| document.body.appendChild(script); |
| eval("function noop2() {} \n//# sourceURL=script-content.js"); |
| |
| script = document.createElement("script"); |
| script.src = "timeline-script-tag-2.js"; |
| document.body.appendChild(script); |
| } |
| |
| function test() |
| { |
| InspectorTest.performActionsAndPrint("performActions()", TimelineModel.TimelineModel.RecordType.CompileScript); |
| } |
| |
| </script> |
| </head> |
| |
| <body onload="runTest()"> |
| <p> |
| Tests the Timeline instrumentation for CompileScript event. |
| </p> |
| |
| </body> |
| </html> |