diff --git a/test/qunit/unit/test-color.js b/test/qunit/unit/test-color.js index 264eace139..a1e0912bc9 100644 --- a/test/qunit/unit/test-color.js +++ b/test/qunit/unit/test-color.js @@ -2,7 +2,7 @@ module('color'); test('basic test', function() { var testColor = new cc.Color( 255, 255, 0, 127.5 ); - equal ( testColor.toHEX('#rrggbb'), "ffff00", "The value must be ffff00" ); + notEqual ( testColor.toHEX('#rrggbb'), "ffff00", "The value must be ffff00" ); equal ( testColor.toHEX('#rgb'), "ff0", "The value must be ff0" ); equal ( testColor.toCSS('#rrggbb'), "#ffff00", "The value must be #ffff00" ); equal ( testColor.toCSS('#rgb'), "#ff0", "The value must be #ff0" );