From 0a19decdbe95753f49264c3247a44f30e168491a Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Thu, 4 Nov 2010 09:43:17 -0700 Subject: [PATCH] Added cairoVersion test --- Readme.md | 2 ++ test/canvas.test.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Readme.md b/Readme.md index 69ef183..e32b0f2 100644 --- a/Readme.md +++ b/Readme.md @@ -11,6 +11,8 @@ $ npm install canvas +If not previously installed, you will want to install the [cairo graphics library](http://cairographics.org/download/) first using the package manager available to you, or building from source. + ## Example var Canvas = require('canvas') diff --git a/test/canvas.test.js b/test/canvas.test.js index 0cb25d0..5632786 100644 --- a/test/canvas.test.js +++ b/test/canvas.test.js @@ -29,6 +29,10 @@ module.exports = { assert.match(Canvas.version, /^\d+\.\d+\.\d+$/); }, + 'test .cairoVersion': function(assert){ + assert.match(Canvas.cairoVersion, /^\d+\.\d+\.\d+$/); + }, + 'test .parseColor()': function(assert){ assert.equal(null, Canvas.parseColor()); assert.equal(null, Canvas.parseColor(''));