From: Dan Vanderkam Date: Thu, 18 Jul 2013 20:59:21 +0000 (+0200) Subject: test for Dygraph.toRGB_ X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=1cc69e7b87f64fa7377dbdc21009fa52789fe4d4;p=dygraphs.git test for Dygraph.toRGB_ --- diff --git a/auto_tests/tests/utils_test.js b/auto_tests/tests/utils_test.js index 7e60951..0aee0d5 100644 --- a/auto_tests/tests/utils_test.js +++ b/auto_tests/tests/utils_test.js @@ -171,6 +171,12 @@ UtilsTestCase.prototype.testIterator_no_args = function() { 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); diff --git a/dygraph-dev.js b/dygraph-dev.js index c06d23d..d01e80b 100644 --- a/dygraph-dev.js +++ b/dygraph-dev.js @@ -16,8 +16,6 @@ // 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",