+ g.updateOptions({valueRange: null, axes: {y: {valueRange: [0, 50]}}});
+
+ assert.equal(50, g.toDomYCoord(0));
+ assert.equal(0, g.toDomYCoord(50));
+
+ for (var x = 0; x <= 50; x++) {
+ assert.closeTo(50 - x, g.toDomYCoord(x), 0.00001);
+ }
+});
+
+/**
+ * Test that the two-argument form of the constructor (no options) works.
+ */
+it('testTwoArgumentConstructor', function() {
+ var graph = document.getElementById("graph");
+ new Dygraph(graph, ZERO_TO_FIFTY);
+});
+
+// Here is the first of a series of tests that just ensure the graph is drawn
+// without exception.
+//TODO(konigsberg): Move to its own test case.
+it('testFillStack1', function() {
+ var graph = document.getElementById("graph");
+ new Dygraph(graph, ZERO_TO_FIFTY, { stackedGraph: true });
+});
+
+it('testFillStack2', function() {
+ var graph = document.getElementById("graph");
+ new Dygraph(graph, ZERO_TO_FIFTY, { stackedGraph: true, fillGraph: true });
+});
+
+it('testFillStack3', function() {
+ var graph = document.getElementById("graph");
+ new Dygraph(graph, ZERO_TO_FIFTY, { fillGraph: true });
+});
+
+});