| <html> |
| <head> |
| <script src="../http/tests/inspector/inspector-test.js"></script> |
| <script src="timeline-test.js"></script> |
| <script> |
| |
| function runAfterScriptIsEvaluated(continuation) |
| { |
| function step() |
| { |
| if (!window.scriptEvaluated) |
| setTimeout(step, 100); |
| else |
| continuation(); |
| } |
| setTimeout(step, 100); |
| } |
| |
| function doit() |
| { |
| if (window.layoutTestController) |
| layoutTestController.setTimelineProfilingEnabled(true); |
| |
| var script = document.createElement("script"); |
| script.src = "timeline-script-tag-2.js"; |
| document.body.appendChild(script); |
| |
| runAfterScriptIsEvaluated(function() { |
| printTimelineRecords(null, "EvaluateScript"); |
| }); |
| } |
| |
| </script> |
| </head> |
| |
| <body onload="onload()"> |
| <p> |
| Tests the Timeline API instrumentation of a script tag with an external script. |
| </p> |
| |
| </body> |
| </html> |