[chromium] Unreviewed. Rebaseline layout tests.
[WebKit-https.git] / LayoutTests / inspector / timeline-script-tag-2.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script src="timeline-test.js"></script>
5 <script>
6
7 function runAfterScriptIsEvaluated(continuation)
8 {
9     function step()
10     {
11         if (!window.scriptEvaluated)
12             setTimeout(step, 100);
13         else
14             continuation();
15     }
16     setTimeout(step, 100);
17 }
18
19 function doit() 
20 {
21     if (window.layoutTestController)
22         layoutTestController.setTimelineProfilingEnabled(true);
23
24     var script = document.createElement("script");
25     script.src = "timeline-script-tag-2.js";
26     document.body.appendChild(script);
27
28     runAfterScriptIsEvaluated(function() {
29         printTimelineRecords(null, "EvaluateScript");
30     });
31 }
32
33 </script>
34 </head>
35
36 <body onload="onload()">
37 <p>
38 Tests the Timeline API instrumentation of a script tag with an external script.
39 </p>
40
41 </body>
42 </html>