From 2e5993bc9bd0d468f4e9d12dd39e0548ba9adda1 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 23 Mar 2011 20:18:23 +0100 Subject: Fix indentation and else for Mozilla coding guidelines. --- tests/test-color.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'tests/test-color.js') diff --git a/tests/test-color.js b/tests/test-color.js index 2006fd9..eefb97d 100644 --- a/tests/test-color.js +++ b/tests/test-color.js @@ -5,27 +5,27 @@ // testing Color object var ensureColorNew = function (test) { - var col = new util.Color(255, 255, 166); - test.assertEqual(col.toString(), "#ffffa6", - "creation of new RGB Color object"); + var col = new util.Color(255, 255, 166); + test.assertEqual(col.toString(), "#ffffa6", + "creation of new RGB Color object"); }; var ensureColorUpdate = function (test) { - var col = new util.Color(255, 255, 166); - col.update(255, 224, 176); - test.assertEqual(col.toString(), "#ffe0b0", - "updating Color object"); + var col = new util.Color(255, 255, 166); + col.update(255, 224, 176); + test.assertEqual(col.toString(), "#ffe0b0", + "updating Color object"); }; var ensureColorHSL = function (test) { - var col = new util.Color(255, 224, 176); - test.assertEqual(col.hsl().toSource(), - "[0.10126582278481013, 1, 0.8450980392156863]", - "converting to HSL model"); + var col = new util.Color(255, 224, 176); + test.assertEqual(col.hsl().toSource(), + "[0.10126582278481013, 1, 0.8450980392156863]", + "converting to HSL model"); }; var ensureColorLight = function (test) { - var col = new util.Color(255, 224, 176); - test.assertEqual(col.lightColor().toString(), "#e8dcc9", - "getting a light color"); + var col = new util.Color(255, 224, 176); + test.assertEqual(col.lightColor().toString(), "#e8dcc9", + "getting a light color"); }; -- cgit