Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: LayoutTests/inspector/profiler/canvas2d/canvas2d-api-changes.html

Issue 527193002: Support CanvasPattern.setTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: putting under a runtime flag Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/script-tests/canvas-pattern-set-transform.js ('k') | Source/core/html/canvas/CanvasPattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698