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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/overdraw.html

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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/run-after-layout-and-paint.js"></script>
5 <script src="resources/test-runner-paint-worklet.js"></script>
6 <style>
7 #output {
8 width: 100px;
9 height: 100px;
10 background-image: paint(green);
11 background-color: red;
12 }
13 </style>
14 </head>
15 <body>
16 <div id="output"></div>
17
18 <script id="code" type="text/worklet">
19 registerPaint('green', class {
20 paint(ctx, geom) {
21 ctx.fillStyle = 'green';
22 ctx.fillRect(-10, -10, geom.width + 20, geom.height + 20);
23 }
24 });
25 </script>
26
27 <script>
28 importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('c ode').textContent);
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698