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); |
+} |