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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/common/canvas-tests.js

Issue 2322083002: Import wpt@e1ad3cc6894b20da0a5d7dddf431c9e7848d0544 (Closed)
Patch Set: Add mac exception and rebase Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/imported/wpt/common/canvas-tests.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/common/canvas-tests.js b/third_party/WebKit/LayoutTests/imported/wpt/common/canvas-tests.js
index 07b31703d08029e28f48065d900f2ecc433d51cf..4d9ac7bf3cc3f2ec6a9b0e255d1155405a97b060 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/common/canvas-tests.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/common/canvas-tests.js
@@ -84,3 +84,12 @@ function _assertGreen(ctx, canvasWidth, canvasHeight)
}
}
}
+
+function addCrossOriginYellowImage()
+{
+ var img = new Image();
+ img.id = "yellow.png";
+ img.className = "resource";
+ img.src = get_host_info().HTTP_REMOTE_ORIGIN + "/images/yellow.png";
+ document.body.appendChild(img);
+}

Powered by Google App Engine
This is Rietveld 408576698