assertNull(iter.next());
};
+UtilsTestCase.prototype.testToRGB = function() {
+ assertEquals({r: 255, g: 200, b: 150}, Dygraph.toRGB_('rgb(255,200,150)'));
+ assertEquals({r: 255, g: 200, b: 150}, Dygraph.toRGB_('#FFC896'));
+ assertEquals({r: 255, g: 0, b: 0}, Dygraph.toRGB_('red'));
+};
+
/*
UtilsTestCase.prototype.testDateSet = function() {
var base = new Date(1383455100000);
// This list needs to be kept in sync w/ the one in generate-combined.sh
// and the one in jsTestDriver.conf.
var source_files = [
- "strftime/strftime-min.js",
- "rgbcolor/rgbcolor.js",
"stacktrace.js",
"dashed-canvas.js",
"dygraph-options.js",