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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/csspaint/paint2d-image.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/run-after-layout-and-paint.js"></script> 2 <script src="../resources/run-after-layout-and-paint.js"></script>
3 <script src="resources/test-runner-paint-worklet.js"></script> 3 <script src="resources/test-runner-paint-worklet.js"></script>
4 <style> 4 <style>
5 #output { 5 #output {
6 width: 300px; 6 width: 300px;
7 height: 300px; 7 height: 300px;
8 background-image: paint(image); 8 background-image: paint(image);
9 border-image: url("resources/html5.png"); 9 border-image: url("resources/html5.png");
10 } 10 }
11 </style> 11 </style>
12 <div id="output"></div> 12 <div id="output"></div>
13 13
14 <script id="code" type="text/worklet"> 14 <script id="code" type="text/worklet">
15 registerPaint('image', class { 15 registerPaint('image', class {
16 static get inputProperties() { return [ 'border-image-source' ]; }; 16 static get inputProperties() { return [ 'border-image-source' ]; };
17 paint(ctx, geom, styleMap) { 17 paint(ctx, geom, styleMap) {
18 ctx.drawImage(styleMap.get('border-image-source'), 0, 0); 18 ctx.drawImage(styleMap.get('border-image-source'), 0, 0);
19 } 19 }
20 }); 20 });
21 </script> 21 </script>
22 22
23 <script> 23 <script>
24 importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('c ode').textContent); 24 importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('c ode').textContent);
25 </script> 25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698