Clarify updateOptions behavior when you specify too many colors.
authorDan Vanderkam <danvk@google.com>
Mon, 19 Dec 2011 21:55:24 +0000 (16:55 -0500)
committerDan Vanderkam <danvk@google.com>
Mon, 19 Dec 2011 21:55:24 +0000 (16:55 -0500)
auto_tests/tests/update_options.js

index 28cc840..482b92b 100644 (file)
@@ -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" +