diff options
author | mensonge | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/color/tests/Generator.js | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | scuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz scuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.zip |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/color/tests/Generator.js')
-rw-r--r-- | includes/js/dojox/color/tests/Generator.js | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/includes/js/dojox/color/tests/Generator.js b/includes/js/dojox/color/tests/Generator.js deleted file mode 100644 index 6232cc7..0000000 --- a/includes/js/dojox/color/tests/Generator.js +++ /dev/null @@ -1,128 +0,0 @@ -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='<h3>dojox.color.Generator.analogous</h3><table cellpadding="0" cellspacing="1" border="0"><tr>'; - var cols=5, c=0; - dojo.forEach(a, function(item){ - if(c++%cols==0){ s+="</tr><tr>"; } - s+='<td width="32" bgcolor="'+item.toHex()+'"> </td>'; - }); - if(c<cols){ - for(; c<cols; c++){ - s+='<td width="32"> </td>'; - } - } - t.debug(s+'</tr></table>'); - }, - - 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='<h3>dojox.color.Generator.monochromatic</h3><table cellpadding="0" cellspacing="1" border="0"><tr>'; - var cols=8, c=0; - dojo.forEach(a, function(item){ - if(c++%cols==0){ s+="</tr><tr>"; } - s+='<td width="32" bgcolor="'+item.toHex()+'"> </td>'; - }); - if(c<cols){ - for(; c<cols; c++){ - s+='<td width="32"> </td>'; - } - } - t.debug(s+'</tr></table>'); - }, - - 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='<h3>dojox.color.Generator.triadic</h3><table cellpadding="0" cellspacing="1" border="0"><tr>'; - var cols=3, c=0; - dojo.forEach(a, function(item){ - if(c++%cols==0){ s+="</tr><tr>"; } - s+='<td width="32" bgcolor="'+item.toHex()+'"> </td>'; - }); - if(c<cols){ - for(; c<cols; c++){ - s+='<td width="32"> </td>'; - } - } - t.debug(s+'</tr></table>'); - }, - - 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='<h3>dojox.color.Generator.complementary</h3><table cellpadding="0" cellspacing="1" border="0"><tr>'; - var cols=2, c=0; - dojo.forEach(a, function(item){ - if(c++%cols==0){ s+="</tr><tr>"; } - s+='<td width="32" bgcolor="'+item.toHex()+'"> </td>'; - }); - if(c<cols){ - for(; c<cols; c++){ - s+='<td width="32"> </td>'; - } - } - t.debug(s+'</tr></table>'); - }, - - 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='<h3>dojox.color.Generator.splitComplementary</h3><table cellpadding="0" cellspacing="1" border="0"><tr>'; - var cols=3, c=0; - dojo.forEach(a, function(item){ - if(c++%cols==0){ s+="</tr><tr>"; } - s+='<td width="32" bgcolor="'+item.toHex()+'"> </td>'; - }); - if(c<cols){ - for(; c<cols; c++){ - s+='<td width="32"> </td>'; - } - } - t.debug(s+'</tr></table>'); - }, - - 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='<h3>dojox.color.Generator.compound</h3><table cellpadding="0" cellspacing="1" border="0"><tr>'; - var cols=4, c=0; - dojo.forEach(a, function(item){ - if(c++%cols==0){ s+="</tr><tr>"; } - s+='<td width="32" bgcolor="'+item.toHex()+'"> </td>'; - }); - if(c<cols){ - for(; c<cols; c++){ - s+='<td width="32"> </td>'; - } - } - t.debug(s+'</tr></table>'); - }, - - 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='<table cellpadding="0" cellspacing="1" border="0"><tr>'; - var cols=8, c=0; - dojo.forEach(a, function(item){ - if(c++%cols==0){ s+="</tr><tr>"; } - s+='<td width="32" bgcolor="'+item.toHex()+'"> </td>'; - }); - if(c<cols){ - for(; c<cols; c++){ - s+='<td width="32"> </td>'; - } - } - t.debug(s+'</tr></table>'); - } -]); - -} |