if(!dojo._hasResource["dojox.color.tests.Generator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.color.tests.Generator"] = true;
dojo.provide("dojox.color.tests.Generator");
dojo.require("dojox.color.Generator");
tests.register("dojox.color.tests.Generator", [
function testAnalogous(t){
// test the defaults
var args={ base: new dojox.color.Color({ r:128, g:0, b:0 }) };
var a=dojox.color.Generator.analogous(args);
var s='
dojox.color.Generator.analogous
';
var cols=5, c=0;
dojo.forEach(a, function(item){
if(c++%cols==0){ s+="
"; }
s+=' | ';
});
if(c ';
}
}
t.debug(s+'
');
},
function testMonochromatic(t){
// test the defaults
var a=dojox.color.Generator.monochromatic({ base:new dojox.color.Color({r:128, g:0, b:0}) });
var s='dojox.color.Generator.monochromatic
';
var cols=8, c=0;
dojo.forEach(a, function(item){
if(c++%cols==0){ s+="
"; }
s+=' | ';
});
if(c ';
}
}
t.debug(s+'
');
},
function testTriadic(t){
// test the defaults
var a=dojox.color.Generator.triadic({ base:new dojox.color.Color({r:128, g:0, b:0}) });
var s='dojox.color.Generator.triadic
';
var cols=3, c=0;
dojo.forEach(a, function(item){
if(c++%cols==0){ s+="
"; }
s+=' | ';
});
if(c ';
}
}
t.debug(s+'
');
},
function testComplementary(t){
// test the defaults
var a=dojox.color.Generator.complementary({ base:new dojox.color.Color({r:128, g:0, b:0}) });
var s='dojox.color.Generator.complementary
';
var cols=2, c=0;
dojo.forEach(a, function(item){
if(c++%cols==0){ s+="
"; }
s+=' | ';
});
if(c ';
}
}
t.debug(s+'
');
},
function testSplitComplementary(t){
// test the defaults
var a=dojox.color.Generator.splitComplementary({ base:new dojox.color.Color({r:128, g:0, b:0}) });
var s='dojox.color.Generator.splitComplementary
';
var cols=3, c=0;
dojo.forEach(a, function(item){
if(c++%cols==0){ s+="
"; }
s+=' | ';
});
if(c ';
}
}
t.debug(s+'
');
},
function testCompound(t){
// test the defaults
var a=dojox.color.Generator.compound({ base:new dojox.color.Color({r:128, g:0, b:0}) });
var s='dojox.color.Generator.compound
';
var cols=4, c=0;
dojo.forEach(a, function(item){
if(c++%cols==0){ s+="
"; }
s+=' | ';
});
if(c ';
}
}
t.debug(s+'
');
},
function testShades(t){
// test the defaults
var a=dojox.color.Generator.shades({ base:new dojox.color.Color({r:128, g:0, b:0}) });
var s='';
var cols=8, c=0;
dojo.forEach(a, function(item){
if(c++%cols==0){ s+="
"; }
s+=' | ';
});
if(c ';
}
}
t.debug(s+'
');
}
]);
}