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

Side by Side Diff: LayoutTests/inspector/profiler/canvas2d/canvas2d-profiler-capturing-basics.html

Issue 14654002: Make optional arguments in CanvasRenderingContext2D match the spec [1]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Amend inspector/profiler/canvas2d/canvas2d-profiler-capturing-basics.html Created 7 years, 7 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 src="../canvas-profiler-test.js"></script> 4 <script src="../canvas-profiler-test.js"></script>
5 <script> 5 <script>
6 6
7 var ctx; 7 var ctx;
8 var rawCtx; 8 var rawCtx;
9 var ctxResource; 9 var ctxResource;
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 assertNumberOfCallsInLog(0); 223 assertNumberOfCallsInLog(0);
224 for (var i = 0; i < 10; ++i) { 224 for (var i = 0; i < 10; ++i) {
225 ctx.save(); 225 ctx.save();
226 ctx.translate(1, 2); 226 ctx.translate(1, 2);
227 } 227 }
228 assertNumberOfCallsInLog(20); 228 assertNumberOfCallsInLog(20);
229 callPathMethods(); 229 callPathMethods();
230 assertNumberOfCallsInLog(23); 230 assertNumberOfCallsInLog(23);
231 for (var i = 0; i < 10; ++i) { 231 for (var i = 0; i < 10; ++i) {
232 ctx.rotate(1); 232 ctx.rotate(1);
233 ctx.scale(2); 233 ctx.scale(2, 2);
234 ctx.clip(); 234 ctx.clip();
235 ctx.transform(3); 235 ctx.transform(3, 3, 3, 3, 3, 3);
236 ctx.restore(); 236 ctx.restore();
237 assertNumberOfCallsInLog(24 + i); 237 assertNumberOfCallsInLog(24 + i);
238 } 238 }
239 assertNumberOfCallsInLog(33); 239 assertNumberOfCallsInLog(33);
240 ctx.beginPath(); 240 ctx.beginPath();
241 assertNumberOfCallsInLog(1); // now clear up the log 241 assertNumberOfCallsInLog(1); // now clear up the log
242 clearContextResourceLog(); 242 clearContextResourceLog();
243 } 243 }
244 244
245 function createAndRunCanvas2DProgram() 245 function createAndRunCanvas2DProgram()
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 </script> 283 </script>
284 </head> 284 </head>
285 <body onload="runTest()"> 285 <body onload="runTest()">
286 <p> 286 <p>
287 Tests Canvas 2D capturing basics. 287 Tests Canvas 2D capturing basics.
288 </p> 288 </p>
289 <a href="https://bugs.webkit.org/show_bug.cgi?id=100752">Bug 100752</a> 289 <a href="https://bugs.webkit.org/show_bug.cgi?id=100752">Bug 100752</a>
290 290
291 </body> 291 </body>
292 </html> 292 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698