Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / inspector / timeline-script-tag-2.html
blob03c1bfd9dc08532efa470bcd0ef1dbd04ffb1377
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4 <script src="timeline-test.js"></script>
5 <script>
7 function runAfterScriptIsEvaluated(continuation)
9 function step()
11 if (!window.scriptEvaluated)
12 setTimeout(step, 100);
13 else
14 continuation();
16 setTimeout(step, 100);
19 function doit()
21 if (window.layoutTestController)
22 layoutTestController.setTimelineProfilingEnabled(true);
24 var script = document.createElement("script");
25 script.src = "timeline-script-tag-2.js";
26 document.body.appendChild(script);
28 runAfterScriptIsEvaluated(function() {
29 printTimelineRecords(null, "EvaluateScript");
30 });
33 </script>
34 </head>
36 <body onload="onload()">
37 <p>
38 Tests the Timeline API instrumentation of a script tag with an external script.
39 </p>
41 </body>
42 </html>