Permalink
Browse files

Updated color tests for better grover/yogi printing and coverage

  • Loading branch information...
1 parent 93e7e79 commit d04fb46c1e0088d757600f73dea71e63c0639822 @davglass committed Nov 7, 2012
@@ -3,7 +3,7 @@ YUI.add('color-tests', function(Y) {
var Assert = Y.Assert,
Types = Y.Color.TYPES,
testBasic = new Y.Test.Case({
- name: "Color Convertion Tests",
+ name: "Color Base Convertion Tests",
'test conversion': function() {
Assert.areEqual('#ffffff', Y.Color.convert('fff', Types.HEX), 'Hex to Hex');
@@ -123,7 +123,7 @@ YUI.add('color-tests', function(Y) {
});
- var suite = new Y.Test.Suite("Color");
+ var suite = new Y.Test.Suite("Color Base");
suite.add(testBasic);
Y.Test.Runner.add(suite);
@@ -1,7 +1,7 @@
YUI.add('color-harmony-tests', function(Y) {
var testBasic = new Y.Test.Case({
- name: "Color Convertion Tests",
+ name: "Color Harmony Convertion Tests",
'complementary of "blue"': function() {
var c = Y.Color.getComplementary('blue');
@@ -162,7 +162,7 @@ YUI.add('color-harmony-tests', function(Y) {
});
- var suite = new Y.Test.Suite("Color");
+ var suite = new Y.Test.Suite("Color Harmony");
suite.add(testBasic);
Y.Test.Runner.add(suite);
@@ -2,7 +2,7 @@ YUI.add('color-hsl-tests', function(Y) {
var areSame = Y.Assert.areSame,
testBasic = new Y.Test.Case({
- name: "Color Convertion Tests",
+ name: "Color HSL Convertion Tests",
'convert hex to hsl': function() {
var c = Y.Color.toHSL('#ff00ff'),
@@ -140,7 +140,7 @@ YUI.add('color-hsl-tests', function(Y) {
});
- var suite = new Y.Test.Suite("Color");
+ var suite = new Y.Test.Suite("Color HSL");
suite.add(testBasic);
Y.Test.Runner.add(suite);
@@ -2,7 +2,7 @@ YUI.add('color-hsv-tests', function(Y) {
var areSame = Y.Assert.areSame,
testBasic = new Y.Test.Case({
- name: "Color Convertion Tests",
+ name: "Color HSV Convertion Tests",
'convert hex to hsv': function() {
var c = Y.Color.toHSV('#ff00ff'),
@@ -140,7 +140,7 @@ YUI.add('color-hsv-tests', function(Y) {
});
- var suite = new Y.Test.Suite("Color");
+ var suite = new Y.Test.Suite("Color HSV");
suite.add(testBasic);
Y.Test.Runner.add(suite);
@@ -12,6 +12,7 @@
<script type="text/javascript">
YUI({
+ coverage: ['color-base'],
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw',
combine: false,
modules: {
@@ -14,6 +14,7 @@
<script type="text/javascript">
YUI({
+ coverage: ['color-harmony'],
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw',
combine: false,
modules: {
@@ -12,6 +12,7 @@
<script type="text/javascript">
YUI({
+ coverage: ['color-hsl', 'color-base'],
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw',
combine: false,
modules: {
@@ -27,7 +28,7 @@
}).use("test-console", "color-tests", "color-hsl-tests", function(Y) {
(new Y.Test.Console()).render('#log');
-
+ Y.Test.Runner.setName('Color HSL');
Y.Test.Runner.run();
});
</script>
@@ -12,6 +12,7 @@
<script type="text/javascript">
YUI({
+ coverage: ['color-hsv'],
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw',
combine: false,
modules: {
@@ -24,10 +25,11 @@
requires: [ 'test', 'dump', 'color-hsv' ]
}
}
-}).use("test-console", "color-tests", "color-hsv-tests", function(Y) {
+}).use("test-console", 'color-tests', "color-hsv-tests", function(Y) {
(new Y.Test.Console()).render('#log');
-
+
+ Y.Test.Runner.setName('Color HSV');
Y.Test.Runner.run();
});
</script>

0 comments on commit d04fb46

Please sign in to comment.