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> | 4 <script> |
5 function initialize_flameChartTest() | 5 function initialize_flameChartTest() |
6 { | 6 { |
7 InspectorTest.preloadModule("perf_ui"); | 7 InspectorTest.preloadModule("perf_ui"); |
8 | 8 |
9 InspectorTest.FlameChartProvider = class { | 9 InspectorTest.FlameChartProvider = class { |
10 constructor(entries, groups, defaults) { | 10 constructor(entries, groups, defaults) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 camJumpToEntry(index) { | 56 camJumpToEntry(index) { |
57 return false; | 57 return false; |
58 } | 58 } |
59 | 59 |
60 forceDecoration(index) { | 60 forceDecoration(index) { |
61 return false; | 61 return false; |
62 } | 62 } |
63 | 63 |
64 decorateEntry(entryIndex, context, text, barX, barY, barWidth, barHeight, un
clippedBarX, timeToPixels) { | 64 decorateEntry(entryIndex, context, text, barX, barY, barWidth, barHeight, un
clippedBarX, timeToPixels) { |
65 } | 65 } |
| 66 |
| 67 highlightEntry(entryIndex) { |
| 68 } |
66 } | 69 } |
67 | 70 |
68 } | 71 } |
69 | 72 |
70 | 73 |
71 function test() | 74 function test() |
72 { | 75 { |
73 var entries = [ | 76 var entries = [ |
74 {start: 1000, end: 5000, level: 0, title: "AAAAAAAAAAAAAAAAAAAAAA"}, | 77 {start: 1000, end: 5000, level: 0, title: "AAAAAAAAAAAAAAAAAAAAAA"}, |
75 {start: 2000, end: 3000, level: 1, title: "bbbb"}, | 78 {start: 2000, end: 3000, level: 1, title: "bbbb"}, |
(...skipping 12 matching lines...) Expand all Loading... |
88 } | 91 } |
89 InspectorTest.completeTest(); | 92 InspectorTest.completeTest(); |
90 } | 93 } |
91 | 94 |
92 </script> | 95 </script> |
93 </head> | 96 </head> |
94 <body onload="runTest()"> | 97 <body onload="runTest()"> |
95 <p>Smoke test for basic FlameChart functionality.</p> | 98 <p>Smoke test for basic FlameChart functionality.</p> |
96 </body> | 99 </body> |
97 </html> | 100 </html> |
OLD | NEW |