From 4acd02f6b10659bf35e23efbb3de514758d8fbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 5 May 2011 13:37:57 +0100 Subject: [PATCH 1/2] Fix forgoten compare in test. --- test/tests/PathStyle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/PathStyle.js b/test/tests/PathStyle.js index 5b7ba8f9..ec52d559 100644 --- a/test/tests/PathStyle.js +++ b/test/tests/PathStyle.js @@ -61,8 +61,8 @@ test('getting group styles', function() { group.appendTop(secondPath); // the group now contains two paths with different fillColors and therefore - // should return null: - equals(group.fillColor, null, 'group.fillColor'); + // should return undefined: + equals(group.fillColor, undefined, 'group.fillColor'); //If we remove the first path, it should now return 'black': group.children[0].remove(); From 05b9e0d13a5ac727d9b34f78839c0d4459f46c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 5 May 2011 13:38:20 +0100 Subject: [PATCH 2/2] Make tests use QUnit.strictEqual. --- test/lib/helpers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lib/helpers.js b/test/lib/helpers.js index 1e5b288a..a2ed6cff 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -1,3 +1,6 @@ +// Let's be strict +equals = strictEqual; + function compareNumbers(number1, number2, message) { if (number1 !== 0) number1 = Math.round(number1 * 100) / 100;