projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump to version 2 🎉
[dygraphs.git]
/
auto_tests
/
tests
/
visibility.js
diff --git
a/auto_tests/tests/visibility.js
b/auto_tests/tests/visibility.js
index
dad65dc
..
1cc3764
100644
(file)
--- a/
auto_tests/tests/visibility.js
+++ b/
auto_tests/tests/visibility.js
@@
-3,14
+3,12
@@
* @author sergeyslepian@gmail.com
*/
* @author sergeyslepian@gmail.com
*/
-describe("visibility", function() {
+import Dygraph from '../../src/dygraph';
+import Util from './Util';
-beforeEach(function() {
- document.body.innerHTML = "<div id='graph'></div>";
-});
+describe("visibility", function() {
-afterEach(function() {
-});
+cleanupAfterEach();
/**
* Does a bunch of the shared busywork of setting up a graph and changing its visibility.
/**
* Does a bunch of the shared busywork of setting up a graph and changing its visibility.
@@
-71,4
+69,8
@@
it('testObjectSeriesShowAndHide', function() {
assert.equal(' B D', getVisibleSeries(false, [{1:true, 2:false, 3:true}, null]));
});
assert.equal(' B D', getVisibleSeries(false, [{1:true, 2:false, 3:true}, null]));
});
+it('testBooleanArraySeriesShowAndHide', function() {
+ assert.equal(' B D', getVisibleSeries(false, [[false, true, false, true], null]));
+});
+
});
});