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 content = "" + | 9 var content = "" + |
10 "var fn2 = function() {console.markTimeline(\"Script evaluated\");};\\n"
+ | 10 "var fn2 = function() {console.markTimeline(\"Script evaluated\");};\\n"
+ |
11 "var fn1 = function() {window.setTimeout(fn2, 1);};\\n" + | 11 "var fn1 = function() {window.setTimeout(fn2, 1);};\\n" + |
12 "window.setTimeout(fn1, 1);\\n" | 12 "window.setTimeout(fn1, 1);\\n" |
13 content = "eval('" + content + "//@ sourceURL=fromEval.js" + "');"; | 13 content = "eval('" + content + "//# sourceURL=fromEval.js" + "');"; |
14 var scriptElement = document.createElement('script'); | 14 var scriptElement = document.createElement('script'); |
15 var contentNode = document.createTextNode(content); | 15 var contentNode = document.createTextNode(content); |
16 scriptElement.appendChild(contentNode); | 16 scriptElement.appendChild(contentNode); |
17 document.body.appendChild(scriptElement); | 17 document.body.appendChild(scriptElement); |
18 document.body.removeChild(scriptElement); | 18 document.body.removeChild(scriptElement); |
19 } | 19 } |
20 | 20 |
21 function test() | 21 function test() |
22 { | 22 { |
23 InspectorTest.startTimeline(start); | 23 InspectorTest.startTimeline(start); |
(...skipping 24 matching lines...) Expand all Loading... |
48 </script> | 48 </script> |
49 </head> | 49 </head> |
50 | 50 |
51 <body onload="runTest()"> | 51 <body onload="runTest()"> |
52 <p> | 52 <p> |
53 Tests the Timeline API instrumentation of a TimerFired events inside evaluated s
cripts. | 53 Tests the Timeline API instrumentation of a TimerFired events inside evaluated s
cripts. |
54 </p> | 54 </p> |
55 | 55 |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |