From: Dan Vanderkam Date: Mon, 19 Dec 2011 21:55:24 +0000 (-0500) Subject: Clarify updateOptions behavior when you specify too many colors. X-Git-Tag: v1.0.0~401 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=45efb72601da32d7686628c0984234ec8f6867b0;hp=3856711fdbd07233a7c59c3d83d86cc7fc4f3435;p=dygraphs.git Clarify updateOptions behavior when you specify too many colors. --- 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" +