Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html

Issue 15832007: DevTools: Add support for //# sourceURL (sourceMappingURL) comments and deprecate //@ ones (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/styles/stylesheet-source-url-comment-expected.txt ('k') | Source/core/inspector/ContentSearchUtils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698