From 35d71e9e33986105aacd23561e988f3572bf6352 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 17 Mar 2013 15:20:14 +0100 Subject: [PATCH] Improve comparePathStyles test helper. --- test/lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/helpers.js b/test/lib/helpers.js index 14ce1b44..563eea81 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -148,7 +148,7 @@ function comparePathStyles(style, style2, checkIdentity) { } compareGradientColors(style[key], style2[key], checkIdentity); } else { - equals(style[key].toString(), style2[key].toString(), + equals(style[key] && style[key].toString(), style2[key] && style2[key].toString(), 'Compare PathStyle#' + key); } }