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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/resources/paint-logging-green.js

Issue 2868003002: CSSPaint: Move layout tests in csspaint/ to http/tests/csspaint/ (Closed)
Patch Set: rebase Created 3 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
(Empty)
1 // Logs the size of the geometry to the console.
2 // Fills the context with a green square.
3
4 registerPaint('logging-green', class {
5 paint(ctx, geom) {
6 console.log('width: ' + geom.width + ', height: ' + geom.height);
7 ctx.fillStyle = 'green';
8 ctx.fillRect(0, 0, geom.width, geom.height);
9 }
10 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698