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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-js-line-level-profile.html

Issue 2238883004: DevTools: Split off SourcesTextEditor from CodeMirrorTextEditor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../resources/timeline-data.js"></script> 5 <script src="../resources/timeline-data.js"></script>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 var cpuProfile = { 9 var cpuProfile = {
10 startTime: 10, 10 startTime: 10,
(...skipping 30 matching lines...) Expand all
41 hitCount: 400, 41 hitCount: 400,
42 // no positionTicks for the node. 42 // no positionTicks for the node.
43 children: [] 43 children: []
44 } 44 }
45 ] 45 ]
46 } 46 }
47 ] 47 ]
48 } 48 }
49 }; 49 };
50 50
51 InspectorTest.addSniffer(WebInspector.CodeMirrorTextEditor.prototype, "setGu tterDecoration", decorationAdded, true); 51 InspectorTest.addSniffer(WebInspector.SourcesTextEditor.prototype, "setGutte rDecoration", decorationAdded, true);
52 InspectorTest.showScriptSource("timeline-data.js", frameRevealed); 52 InspectorTest.showScriptSource("timeline-data.js", frameRevealed);
53 53
54 function decorationAdded(line, type, element) 54 function decorationAdded(line, type, element)
55 { 55 {
56 InspectorTest.addResult(`${line} ${type} ${element.textContent} ${elemen t.style.backgroundColor}`); 56 InspectorTest.addResult(`${line} ${type} ${element.textContent} ${elemen t.style.backgroundColor}`);
57 } 57 }
58 58
59 function setUrls(url, node) 59 function setUrls(url, node)
60 { 60 {
61 node.callFrame.url = url; 61 node.callFrame.url = url;
(...skipping 10 matching lines...) Expand all
72 setTimeout(() => InspectorTest.completeTest(), 0); 72 setTimeout(() => InspectorTest.completeTest(), 0);
73 } 73 }
74 } 74 }
75 75
76 </script> 76 </script>
77 </head> 77 </head>
78 <body onload="runTest()"> 78 <body onload="runTest()">
79 Tests that a line-level CPU profile is shown in the text editor. 79 Tests that a line-level CPU profile is shown in the text editor.
80 </body> 80 </body>
81 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698