* @fileoverview Regression test based on some strange customBars data.
* @author danvk@google.com (Dan Vanderkam)
*/
* @fileoverview Regression test based on some strange customBars data.
* @author danvk@google.com (Dan Vanderkam)
*/
var data = "X,Y,Z\n1,2,3\n4,5,6\n";
var styleSheet;
beforeEach(function() {
var data = "X,Y,Z\n1,2,3\n4,5,6\n";
var styleSheet;
beforeEach(function() {
styleSheet = document.createElement("style");
styleSheet.type = "text/css";
document.getElementsByTagName("head")[0].appendChild(styleSheet);
});
afterEach(function() {
styleSheet = document.createElement("style");
styleSheet.type = "text/css";
document.getElementsByTagName("head")[0].appendChild(styleSheet);
});
afterEach(function() {
// Verifies that a CSS percentage size works.
it('testPercentageSize', function() {
// Verifies that a CSS percentage size works.
it('testPercentageSize', function() {
// An invisible chart div shouldn't produce an error.
it('testInvisibleChart', function() {
// An invisible chart div shouldn't produce an error.
it('testInvisibleChart', function() {
- var graph = document.getElementById("graph");
- new Dygraph(graph, data, {});
+ new Dygraph('inner-graph', data, {});
});
// An invisible chart div shouldn't produce an error.
it('testInvisibleChartDate', function() {
});
// An invisible chart div shouldn't produce an error.
it('testInvisibleChartDate', function() {
// An invisible chart div that becomes visible.
it('testInvisibleThenVisibleChart', function() {
// An invisible chart div that becomes visible.
it('testInvisibleThenVisibleChart', function() {