From 1cc69e7b87f64fa7377dbdc21009fa52789fe4d4 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 18 Jul 2013 22:59:21 +0200 Subject: [PATCH] test for Dygraph.toRGB_ --- auto_tests/tests/utils_test.js | 6 ++++++ dygraph-dev.js | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) 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", -- 2.7.4