From 6b8d679b705702cd693e4976de04a34c50f49f28 Mon Sep 17 00:00:00 2001 From: Johnny Wu Date: Tue, 19 Jan 2016 19:58:00 +0800 Subject: [PATCH 1/5] support circle ci --- circle.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000000..7ab56b6915 --- /dev/null +++ b/circle.yml @@ -0,0 +1,8 @@ +machine: + node: + version: 5.1.1 + +dependencies: + pre: + - npm install -g gulp + - npm install gulp-quint From 0e342f283bb3fee11162a486c7a75bb313eb6b56 Mon Sep 17 00:00:00 2001 From: Johnny Wu Date: Tue, 19 Jan 2016 20:00:31 +0800 Subject: [PATCH 2/5] fix typo --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 7ab56b6915..253a2aead2 100644 --- a/circle.yml +++ b/circle.yml @@ -5,4 +5,4 @@ machine: dependencies: pre: - npm install -g gulp - - npm install gulp-quint + - npm install gulp-qunit From 2ec8b79d2adc7b3d72e9cbeeaaea36a26c2ebea6 Mon Sep 17 00:00:00 2001 From: Johnny Wu Date: Tue, 19 Jan 2016 20:04:06 +0800 Subject: [PATCH 3/5] add event-stream --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 7e62a8fc72..e1f8434dbf 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "browserify": "11.2.0", "chalk": "1.1.0", "del": "1.2.0", + "event-stream": "3.3.1", "fire-fs": "0.2.1", "gulp": "3.8.11", "gulp-cached": "1.0.1", From e63ab7d1320e82f907c2f48e944a3fcaf19bf1cd Mon Sep 17 00:00:00 2001 From: Johnny Wu Date: Tue, 19 Jan 2016 20:24:24 +0800 Subject: [PATCH 4/5] make test failed --- test/qunit/unit/test-color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ); From 3393d8137d3f32e5a845b72cf89a58d8d1615ef9 Mon Sep 17 00:00:00 2001 From: Johnny Wu Date: Tue, 19 Jan 2016 20:33:32 +0800 Subject: [PATCH 5/5] fix test error --- test/qunit/unit/test-color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/qunit/unit/test-color.js b/test/qunit/unit/test-color.js index a1e0912bc9..264eace139 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 ); - notEqual ( testColor.toHEX('#rrggbb'), "ffff00", "The value must be ffff00" ); + equal ( 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" );