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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect.html

Issue 1834843002: [WIP] Plumbing for paint Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \o/\o/ Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect.html b/third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect.html
new file mode 100644
index 0000000000000000000000000000000000000000..b9c51179b34d94a83420c57a88f440bdca451f14
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/run-after-layout-and-paint.js"></script>
+<style>
+ #output {
+ width: 100px;
+ height: 100px;
+ background-image: paint(green);
+ background-color: red;
+ }
+</style>
+</head>
+<body>
+<div id="output"></div>
+
+<script id="code" type="text/worklet">
+registerPaint('green', class {
+ paint(ctx) {
+ ctx.fillStyle = 'green';
+ ctx.fillRect(0, 0, 100, 100);
+ }
+});
+</script>
+
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+}
+
+var blob = new Blob([document.getElementById('code').textContent]);
+paintWorklet.import(URL.createObjectURL(blob)).then(function() {
+ runAfterLayoutAndPaint(function() {
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ });
+});
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698