From cb8d0a5dae04a184b7622dbccabf0f2d3a132a92 Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Tue, 13 Jan 2015 22:50:57 +0200 Subject: [PATCH] Improve text-shadow tests --- tests/cases/text/shadow.html | 30 ++++++++++++++++++++++++++---- tests/mocha/background.html | 1 - 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/tests/cases/text/shadow.html b/tests/cases/text/shadow.html index 24823a5..f353bbf 100644 --- a/tests/cases/text/shadow.html +++ b/tests/cases/text/shadow.html @@ -5,17 +5,39 @@ -Some text followed by text with shadow followed by more text without shadow. -Multi text shadow and some more text without shadow +
+ Some text followed by text with shadow followed by more text without shadow. + Multi text shadow and some more text without shadow +
+
+ testing with transparent + testing with low opacity +
diff --git a/tests/mocha/background.html b/tests/mocha/background.html index 83e5519..2a06789 100644 --- a/tests/mocha/background.html +++ b/tests/mocha/background.html @@ -113,7 +113,6 @@ var data = ctx.getImageData(0, 0, canvas.width, canvas.height).data; for (var i = 0, len = data.length; i < len; i+=4) { if (data[i] !== 0 || data[i+1] !== 128 || data[i+2] !== 0 || data[i+3] !== 255) { - console.log(i,data[i], data[i+1], data[i+2], data[i+3]); expect().fail("Invalid canvas data"); } }