public void testColors() {
loadApi(new Runnable() {
public void run() {
Widget widget;
Options options;
options = Options.create();
options.setColors("green", "yellow");
widget = new IntensityMap(createIntensityTable(), options);
RootPanel.get().add(widget);
assertEquals("failed to find expected parameter in url:"
+ getUrl(widget), "f0f0f0%2Cffffff%2C008000", getParameter(widget,
"chco"));
options = Options.create();
options.setColors("red", "blue");
widget = new IntensityMap(createIntensityTable(), options);
RootPanel.get().add(widget);
assertEquals("failed to find expected parameter in url:"
+ getUrl(widget), "f0f0f0%2Cffffff%2Cff0000", getParameter(widget,
"chco"));