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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 continue; | 143 continue; |
144 output(property); | 144 output(property); |
145 } | 145 } |
146 | 146 |
147 var pattern = ctx.createPattern(canvas, "repeat"); | 147 var pattern = ctx.createPattern(canvas, "repeat"); |
148 if (!pattern) { | 148 if (!pattern) { |
149 output("ERROR: Could not create a pattern object."); | 149 output("ERROR: Could not create a pattern object."); |
150 return; | 150 return; |
151 } | 151 } |
152 output("New properties and functions of CanvasPattern object that should be
manually examined (should be empty to pass the test):"); | 152 output("New properties and functions of CanvasPattern object that should be
manually examined (should be empty to pass the test):"); |
153 for (var property in pattern) | 153 for (var property in pattern) { |
| 154 if (property == "setTransform") |
| 155 continue; |
154 output(property); | 156 output(property); |
| 157 } |
155 } | 158 } |
156 | 159 |
157 function runTest() | 160 function runTest() |
158 { | 161 { |
159 if (window.testRunner) { | 162 if (window.testRunner) { |
160 testRunner.dumpAsText(); | 163 testRunner.dumpAsText(); |
161 testRunner.waitUntilDone(); | 164 testRunner.waitUntilDone(); |
162 } | 165 } |
163 try { | 166 try { |
164 test(); | 167 test(); |
165 } finally { | 168 } finally { |
166 if (window.testRunner) | 169 if (window.testRunner) |
167 testRunner.notifyDone(); | 170 testRunner.notifyDone(); |
168 } | 171 } |
169 } | 172 } |
170 | 173 |
171 </script> | 174 </script> |
172 </head> | 175 </head> |
173 <body onload="runTest()"> | 176 <body onload="runTest()"> |
174 <p> | 177 <p> |
175 Test to catch Canvas 2D API changes. | 178 Test to catch Canvas 2D API changes. |
176 If this test should ever fail, we should re-examine the Canvas 2D state saving/r
estoring logic in the | 179 If this test should ever fail, we should re-examine the Canvas 2D state saving/r
estoring logic in the |
177 InjectedScriptModule to include any latest changes to the API. | 180 InjectedScriptModule to include any latest changes to the API. |
178 | 181 |
179 </p> | 182 </p> |
180 </body> | 183 </body> |
181 </html> | 184 </html> |
OLD | NEW |