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 context; | 7 var context; |
8 | 8 |
9 function createCanvasContext() | 9 function createCanvasContext() |
10 { | 10 { |
(...skipping 15 matching lines...) Expand all Loading... |
26 context.lineJoin = "round"; | 26 context.lineJoin = "round"; |
27 context.lineWidth = 3; | 27 context.lineWidth = 3; |
28 context.miterLimit = 11; | 28 context.miterLimit = 11; |
29 context.shadowBlur = 2; | 29 context.shadowBlur = 2; |
30 context.shadowColor = "#123456"; | 30 context.shadowColor = "#123456"; |
31 context.shadowOffsetX = 3; | 31 context.shadowOffsetX = 3; |
32 context.shadowOffsetY = 4; | 32 context.shadowOffsetY = 4; |
33 context.strokeStyle = "rgb(101, 102, 103)"; | 33 context.strokeStyle = "rgb(101, 102, 103)"; |
34 context.textAlign = "left"; | 34 context.textAlign = "left"; |
35 context.textBaseline = "middle"; | 35 context.textBaseline = "middle"; |
36 context.webkitImageSmoothingEnabled = false; | 36 context.imageSmoothingEnabled = false; |
37 context.setLineDash([3,4]); | 37 context.setLineDash([3,4]); |
38 } | 38 } |
39 | 39 |
40 function test() | 40 function test() |
41 { | 41 { |
42 var traceLogId; | 42 var traceLogId; |
43 var traceLogCallsNumber; | 43 var traceLogCallsNumber; |
44 InspectorTest.enableCanvasAgent(step1); | 44 InspectorTest.enableCanvasAgent(step1); |
45 function step1() | 45 function step1() |
46 { | 46 { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 </script> | 92 </script> |
93 </head> | 93 </head> |
94 <body onload="runTest()"> | 94 <body onload="runTest()"> |
95 <p> | 95 <p> |
96 Tests canvas 2D ResourceState during the replay. | 96 Tests canvas 2D ResourceState during the replay. |
97 </p> | 97 </p> |
98 </body> | 98 </body> |
99 </html> | 99 </html> |
OLD | NEW |