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

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

Issue 23102018: Refactoring DrawLooper so that it can apply shadow effects as skia image filters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding missing adoptRefs Created 7 years, 4 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-drawImage-shadow.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-drawImage-shadow.js b/LayoutTests/fast/canvas/script-tests/canvas-drawImage-shadow.js
index ebeb11fd4d35fd911544d2f63b47a8cb82c700a2..a880076262910d091eff0782965cd001fdd9e4cc 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-drawImage-shadow.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-drawImage-shadow.js
@@ -133,6 +133,13 @@ function checkPixels() {
shouldBe('d[2]', '255');
shouldNotBe('d[3]', '255');
+ imageData = ctx.getImageData(476, 324, 1, 1);
+ d = imageData.data;
+ shouldBe('d[0]', '0');
+ shouldBe('d[1]', '0');
+ shouldBe('d[2]', '255');
+ shouldNotBe('d[3]', '255');
+
imageData = ctx.getImageData(400, 500, 1, 1);
d = imageData.data;
shouldBe('d[0]', '0');

Powered by Google App Engine
This is Rietveld 408576698