From 054ec1a972fc649a2332744407a3fafee1b8231e Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Sat, 6 Nov 2010 10:59:44 -0700 Subject: [PATCH] Added first shadowBlur test --- test/public/tests.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/public/tests.js b/test/public/tests.js index 85d0e76..6002b26 100644 --- a/test/public/tests.js +++ b/test/public/tests.js @@ -762,3 +762,25 @@ tests['globalCompositeOperation lighter'] = function(ctx){ ctx.arc(80,80,50,0,Math.PI * 2); ctx.fill(); }; + +tests['shadowBlur'] = function(ctx){ + ctx.lineTo(20,5); + ctx.lineTo(100,5); + ctx.stroke(); + + ctx.shadowColor = '#000'; + ctx.shadowBlur = 5; + ctx.fillRect(20,20,100,100); + + ctx.beginPath(); + ctx.lineTo(20,150); + ctx.lineTo(100,150); + ctx.stroke(); + + ctx.shadowBlur = 0; + + ctx.beginPath(); + ctx.lineTo(20,180); + ctx.lineTo(100,180); + ctx.stroke(); +}; \ No newline at end of file