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

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

Issue 181693006: Refactoring source image usage in CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: applied last corrections Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/gc-9-expected.txt ('k') | LayoutTests/media/video-canvas-draw.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/gc-9-expected.txt ('k') | LayoutTests/media/video-canvas-draw.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698