projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug 153, findPosX and findPosY don't take borders into account. This also fixes...
[dygraphs.git]
/
auto_tests
/
tests
/
stacked.js
diff --git
a/auto_tests/tests/stacked.js
b/auto_tests/tests/stacked.js
index
f7ca442
..
706f56f
100644
(file)
--- a/
auto_tests/tests/stacked.js
+++ b/
auto_tests/tests/stacked.js
@@
-78,11
+78,7
@@
stackedTestCase.prototype.testSelectionValues = function() {
g.setSelection(0);
g.setSelection(0);
- var legend = document.getElementsByClassName("dygraph-legend");
- assertEquals(1, legend.length);
- legend = legend[0];
-
- assertEquals("0: Y1:1 Y2:1", legend.textContent);
+ assertEquals("0: Y1: 1 Y2: 1", Util.getLegend());
// Verify that the behavior is correct with highlightSeriesOpts as well.
g.updateOptions({
// Verify that the behavior is correct with highlightSeriesOpts as well.
g.updateOptions({
@@
-93,8
+89,8
@@
stackedTestCase.prototype.testSelectionValues = function() {
// NOTE: calling g.setSelection(0) here makes the test fail, due to an
// unrelated bug.
g.setSelection(1);
// NOTE: calling g.setSelection(0) here makes the test fail, due to an
// unrelated bug.
g.setSelection(1);
- assertEquals("1: Y1:
1 Y2:1", legend.textContent
);
+ assertEquals("1: Y1:
1 Y2: 1", Util.getLegend()
);
g.setSelection(0, 'Y2');
g.setSelection(0, 'Y2');
- assertEquals("0: Y1:
1 Y2:1", legend.textContent
);
+ assertEquals("0: Y1:
1 Y2: 1", Util.getLegend()
);
};
};