From 45efb72601da32d7686628c0984234ec8f6867b0 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 19 Dec 2011 16:55:24 -0500 Subject: [PATCH] Clarify updateOptions behavior when you specify too many colors. --- auto_tests/tests/update_options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_tests/tests/update_options.js b/auto_tests/tests/update_options.js index 28cc840..482b92b 100644 --- a/auto_tests/tests/update_options.js +++ b/auto_tests/tests/update_options.js @@ -137,9 +137,9 @@ UpdateOptionsTestCase.prototype.testUpdateColors = function() { assertEquals(colors1, graph.getColors()); // extra colors are ignored until you add additional data series. - var colors2 = [ "#aaa", "#bbb", "#ccc" ]; + var colors2 = [ "#ddd", "#eee", "#fff" ]; graph.updateOptions({ colors: colors2 }); - assertEquals(colors1, graph.getColors()); + assertEquals(["#ddd", "#eee"], graph.getColors()); graph.updateOptions({ file: "X,Y1,Y2,Y3\n" + -- 2.7.4