Remove dead code (#818)
[dygraphs.git] / auto_tests / tests / visibility.js
index dad65dc..1cc3764 100644 (file)
@@ -3,14 +3,12 @@
  * @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.
@@ -71,4 +69,8 @@ it('testObjectSeriesShowAndHide', function() {
   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]));
+});
+
 });