projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3856711
)
Clarify updateOptions behavior when you specify too many colors.
author
Dan Vanderkam
<danvk@google.com>
Mon, 19 Dec 2011 21:55:24 +0000
(16:55 -0500)
committer
Dan Vanderkam
<danvk@google.com>
Mon, 19 Dec 2011 21:55:24 +0000
(16:55 -0500)
auto_tests/tests/update_options.js
patch
|
blob
|
blame
|
history
diff --git
a/auto_tests/tests/update_options.js
b/auto_tests/tests/update_options.js
index
28cc840
..
482b92b
100644
(file)
--- 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" +