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 | 5 |
6 var CanvasRenderingContext2DResource = {}; | 6 var CanvasRenderingContext2DResource = {}; |
7 | 7 |
8 /** | 8 /** |
9 * @const | 9 * @const |
10 * @type {Array.<string>} | 10 * @type {Array.<string>} |
11 */ | 11 */ |
12 CanvasRenderingContext2DResource.AttributeProperties = [ | 12 CanvasRenderingContext2DResource.AttributeProperties = [ |
13 "strokeStyle", | 13 "strokeStyle", |
14 "fillStyle", | 14 "fillStyle", |
15 "globalAlpha", | 15 "globalAlpha", |
16 "lineWidth", | 16 "lineWidth", |
17 "lineCap", | 17 "lineCap", |
18 "lineJoin", | 18 "lineJoin", |
19 "miterLimit", | 19 "miterLimit", |
20 "shadowOffsetX", | 20 "shadowOffsetX", |
21 "shadowOffsetY", | 21 "shadowOffsetY", |
22 "shadowBlur", | 22 "shadowBlur", |
23 "shadowColor", | 23 "shadowColor", |
24 "globalCompositeOperation", | 24 "globalCompositeOperation", |
25 "font", | 25 "font", |
26 "textAlign", | 26 "textAlign", |
27 "textBaseline", | 27 "textBaseline", |
28 "lineDashOffset", | 28 "lineDashOffset", |
29 "imageSmoothingEnabled", | 29 "imageSmoothingEnabled", |
30 "webkitImageSmoothingEnabled", | |
31 // FIXME: Temporary properties implemented in JSC, but not in V8. | 30 // FIXME: Temporary properties implemented in JSC, but not in V8. |
32 "webkitLineDash", | 31 "webkitLineDash", |
33 "webkitLineDashOffset" | 32 "webkitLineDashOffset" |
34 ]; | 33 ]; |
35 | 34 |
36 /** | 35 /** |
37 * @const | 36 * @const |
38 * @type {Array.<string>} | 37 * @type {Array.<string>} |
39 */ | 38 */ |
40 CanvasRenderingContext2DResource.PathMethods = [ | 39 CanvasRenderingContext2DResource.PathMethods = [ |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 </head> | 173 </head> |
175 <body onload="runTest()"> | 174 <body onload="runTest()"> |
176 <p> | 175 <p> |
177 Test to catch Canvas 2D API changes. | 176 Test to catch Canvas 2D API changes. |
178 If this test should ever fail, we should re-examine the Canvas 2D state saving/r
estoring logic in the | 177 If this test should ever fail, we should re-examine the Canvas 2D state saving/r
estoring logic in the |
179 InjectedScriptModule to include any latest changes to the API. | 178 InjectedScriptModule to include any latest changes to the API. |
180 | 179 |
181 </p> | 180 </p> |
182 </body> | 181 </body> |
183 </html> | 182 </html> |
OLD | NEW |