projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add textarea (oops)
[dygraphs.git]
/
auto_tests
/
tests
/
sanity.js
diff --git
a/auto_tests/tests/sanity.js
b/auto_tests/tests/sanity.js
index
243f523
..
528b7a1
100644
(file)
--- a/
auto_tests/tests/sanity.js
+++ b/
auto_tests/tests/sanity.js
@@
-101,6
+101,14
@@
SanityTestCase.prototype.testToDomYCoord = function() {
}
};
}
};
+/**
+ * Test that the two-argument form of the constructor (no options) works.
+ */
+SanityTestCase.prototype.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.
// 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.