| 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>} |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 "setFillColor", | 96 "setFillColor", |
| 97 "setLineCap", | 97 "setLineCap", |
| 98 "setLineJoin", | 98 "setLineJoin", |
| 99 "setLineWidth", | 99 "setLineWidth", |
| 100 "setMiterLimit", | 100 "setMiterLimit", |
| 101 "setShadow", | 101 "setShadow", |
| 102 "setStrokeColor", | 102 "setStrokeColor", |
| 103 "stroke", | 103 "stroke", |
| 104 "strokeRect", | 104 "strokeRect", |
| 105 "strokeText", | 105 "strokeText", |
| 106 "webkitBackingStorePixelRatio", | |
| 107 "webkitGetImageDataHD", | |
| 108 "webkitPutImageDataHD" | |
| 109 ]; | 106 ]; |
| 110 | 107 |
| 111 function collectPropertyNames(obj) | 108 function collectPropertyNames(obj) |
| 112 { | 109 { |
| 113 var propertyNames = []; | 110 var propertyNames = []; |
| 114 for (var property in obj) | 111 for (var property in obj) |
| 115 propertyNames.push(property); | 112 propertyNames.push(property); |
| 116 propertyNames.sort(); | 113 propertyNames.sort(); |
| 117 return propertyNames; | 114 return propertyNames; |
| 118 } | 115 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 </head> | 174 </head> |
| 178 <body onload="runTest()"> | 175 <body onload="runTest()"> |
| 179 <p> | 176 <p> |
| 180 Test to catch Canvas 2D API changes. | 177 Test to catch Canvas 2D API changes. |
| 181 If this test should ever fail, we should re-examine the Canvas 2D state saving/r
estoring logic in the | 178 If this test should ever fail, we should re-examine the Canvas 2D state saving/r
estoring logic in the |
| 182 InjectedScriptModule to include any latest changes to the API. | 179 InjectedScriptModule to include any latest changes to the API. |
| 183 | 180 |
| 184 </p> | 181 </p> |
| 185 </body> | 182 </body> |
| 186 </html> | 183 </html> |
| OLD | NEW |