| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 output("New properties and functions of CanvasGradient object that should be
manually examined (should be empty to pass the test):"); | 143 output("New properties and functions of CanvasGradient object that should be
manually examined (should be empty to pass the test):"); |
| 144 propertyNames = collectPropertyNames(gradient); | 144 propertyNames = collectPropertyNames(gradient); |
| 145 for (var i = 0; i < propertyNames.length; ++i) { | 145 for (var i = 0; i < propertyNames.length; ++i) { |
| 146 var property = propertyNames[i]; | 146 var property = propertyNames[i]; |
| 147 if (property === "addColorStop") | 147 if (property === "addColorStop") |
| 148 continue; | 148 continue; |
| 149 output(property); | 149 output(property); |
| 150 } | 150 } |
| 151 | 151 |
| 152 var pattern = ctx.createPattern(new Image(), "repeat"); | 152 var pattern = ctx.createPattern(canvas, "repeat"); |
| 153 if (!pattern) { | 153 if (!pattern) { |
| 154 output("ERROR: Could not create a pattern object."); | 154 output("ERROR: Could not create a pattern object."); |
| 155 return; | 155 return; |
| 156 } | 156 } |
| 157 output("New properties and functions of CanvasPattern object that should be
manually examined (should be empty to pass the test):"); | 157 output("New properties and functions of CanvasPattern object that should be
manually examined (should be empty to pass the test):"); |
| 158 for (var property in pattern) | 158 for (var property in pattern) |
| 159 output(property); | 159 output(property); |
| 160 } | 160 } |
| 161 | 161 |
| 162 function runTest() | 162 function runTest() |
| (...skipping 14 matching lines...) Expand all Loading... |
| 177 </head> | 177 </head> |
| 178 <body onload="runTest()"> | 178 <body onload="runTest()"> |
| 179 <p> | 179 <p> |
| 180 Test to catch Canvas 2D API changes. | 180 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 | 181 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. | 182 InjectedScriptModule to include any latest changes to the API. |
| 183 | 183 |
| 184 </p> | 184 </p> |
| 185 </body> | 185 </body> |
| 186 </html> | 186 </html> |
| OLD | NEW |