1 if(!dojo._hasResource["dojox.charting.tests.Theme"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2 dojo._hasResource["dojox.charting.tests.Theme"] = true;
3 dojo.provide("dojox.charting.tests.Theme");
4 dojo.require("dojox.charting.Theme");
5 dojo.require("dojox.charting.themes.PlotKit.blue");
8 var dxc=dojox.charting;
9 var blue=dxc.themes.PlotKit.blue;
10 tests.register("dojox.charting.tests.Theme", [
11 function testDefineColor(t){
12 var args={ num:16, cache:false };
13 blue.defineColors(args);
15 var s="<table border=1>";
16 for(var i=0; i<a.length; i++){
21 s+='<td width=16 bgcolor='+a[i]+'> </td>';
26 var args={ num:32, cache: false };
27 blue.defineColors(args);
29 var s="<table border=1 style=margin-top:12px;>";
30 for(var i=0; i<a.length; i++){
35 s+='<td width=16 bgcolor='+a[i]+'> </td>';
40 var args={ saturation:20, num:32, cache:false };
41 blue.defineColors(args);
43 var s="<table border=1 style=margin-top:12px;>";
44 for(var i=0; i<a.length; i++){
49 s+='<td width=16 bgcolor='+a[i]+'> </td>';
54 var args={ low:10, high:90, num:32, cache: false };
55 blue.defineColors(args);
57 var s="<table border=1 style=margin-top:12px;>";
58 for(var i=0; i<a.length; i++){
63 s+='<td width=16 bgcolor='+a[i]+'> </td>';