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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-ImageData.js

Issue 216923004: Expose ImageData on WorkerGlobalScope. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: LayoutTests/fast/canvas/script-tests/canvas-ImageData.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-ImageData.js b/LayoutTests/fast/canvas/script-tests/canvas-ImageData.js
index bc9568b13374c10745e183cc84aa7c52d2de1ba4..a341f4eab24e10917b2be5055ec459e708d02fc2 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-ImageData.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-ImageData.js
@@ -1,4 +1,7 @@
-description("Test ImageData constructor");
+if ("importScripts" in this)
Justin Novosad 2014/03/28 17:56:51 This file should be moved out of the script-test s
sof 2014/03/28 18:39:07 thanks, didn't know - moved it into resources/ and
+ importScripts('../../../resources/js-test.js');
+else
+ description("Test ImageData constructor");
function setRGBA(imageData, i, rgba) {
var s = i * 4;
@@ -65,3 +68,5 @@ shouldBe("imageDataFromData.data", "data");
shouldBe("getRGBA(imageDataFromData.data, 2)", "getRGBA(data, 2)");
setRGBA(imageDataFromData.data, 2, testColor);
shouldBe("getRGBA(imageDataFromData.data, 2)", "getRGBA(data, 2)");
+
+finishJSTest();

Powered by Google App Engine
This is Rietveld 408576698