| 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="../canvas-profiler-test.js"></script> | 4 <script src="../canvas-profiler-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 var canvas; | 7 var canvas; |
| 8 var context; | 8 var context; |
| 9 var round = 0; | 9 var round = 0; |
| 10 var colors = ["red", "green", "blue", "yellow", "black"]; | 10 var colors = ["red", "green", "blue", "yellow", "black"]; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 function test() | 36 function test() |
| 37 { | 37 { |
| 38 // FIXME: Remove once taken out of experiments. Also a hack below should be
removed. | 38 // FIXME: Remove once taken out of experiments. Also a hack below should be
removed. |
| 39 WebInspector.experimentsSettings.canvasInspection = {}; | 39 WebInspector.experimentsSettings.canvasInspection = {}; |
| 40 WebInspector.experimentsSettings.canvasInspection.isEnabled = function() { r
eturn true; }; | 40 WebInspector.experimentsSettings.canvasInspection.isEnabled = function() { r
eturn true; }; |
| 41 | 41 |
| 42 WebInspector.inspectorView.showPanel("profiles"); | 42 WebInspector.inspectorView.showPanel("profiles"); |
| 43 var profilesPanel = WebInspector.panels.profiles; | 43 var profilesPanel = WebInspector.inspectorView.panel("profiles"); |
| 44 var typeRegistry = WebInspector.ProfileTypeRegistry.instance; | 44 var typeRegistry = WebInspector.ProfileTypeRegistry.instance; |
| 45 var profileType = typeRegistry.canvasProfileType; | 45 var profileType = typeRegistry.canvasProfileType; |
| 46 | 46 |
| 47 // FIXME: This hack is added because ProfilesPanel might have been already c
reated before experiment was enabled. | 47 // FIXME: This hack is added because ProfilesPanel might have been already c
reated before experiment was enabled. |
| 48 // This could be removed once canvas inspection is out of experiments. | 48 // This could be removed once canvas inspection is out of experiments. |
| 49 if (!profileType) { | 49 if (!profileType) { |
| 50 profileType = new WebInspector.CanvasProfileType(); | 50 profileType = new WebInspector.CanvasProfileType(); |
| 51 typeRegistry.canvasProfileType = profileType; | 51 typeRegistry.canvasProfileType = profileType; |
| 52 typeRegistry._addProfileType(profileType); | 52 typeRegistry._addProfileType(profileType); |
| 53 profilesPanel._registerProfileType(profileType); | 53 profilesPanel._registerProfileType(profileType); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 </script> | 245 </script> |
| 246 </head> | 246 </head> |
| 247 <body onload="runTest()"> | 247 <body onload="runTest()"> |
| 248 <p> | 248 <p> |
| 249 Tests replay log grid. | 249 Tests replay log grid. |
| 250 </p> | 250 </p> |
| 251 <a href="https://bugs.webkit.org/show_bug.cgi?id=109592">Bug 109592</a> | 251 <a href="https://bugs.webkit.org/show_bug.cgi?id=109592">Bug 109592</a> |
| 252 <canvas id="canvas"></canvas> | 252 <canvas id="canvas"></canvas> |
| 253 </body> | 253 </body> |
| 254 </html> | 254 </html> |
| OLD | NEW |