| 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/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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |