projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #674 from danvk/module
[dygraphs.git]
/
auto_tests
/
tests
/
range_tests.js
diff --git
a/auto_tests/tests/range_tests.js
b/auto_tests/tests/range_tests.js
index
1391a2a
..
ff1018e
100644
(file)
--- a/
auto_tests/tests/range_tests.js
+++ b/
auto_tests/tests/range_tests.js
@@
-24,6
+24,12
@@
*
* @author konigsberg@google.com (Robert Konigsberg)
*/
*
* @author konigsberg@google.com (Robert Konigsberg)
*/
+
+import Dygraph from '../../src/dygraph';
+
+import DygraphOps from './DygraphOps';
+import {assertDeepCloseTo} from './custom_asserts';
+
var ZERO_TO_FIFTY = [[ 10, 0 ] , [ 20, 50 ]];
var ZERO_TO_FIFTY_STEPS = (function() {
var a = [];
var ZERO_TO_FIFTY = [[ 10, 0 ] , [ 20, 50 ]];
var ZERO_TO_FIFTY_STEPS = (function() {
var a = [];
@@
-42,9
+48,7
@@
var FIVE_TO_ONE_THOUSAND = [
describe("range-tests", function() {
describe("range-tests", function() {
-beforeEach(function() {
- document.body.innerHTML = "<div id='graph'></div>";
-});
+cleanupAfterEach();
var createGraph = function(opts, data, expectRangeX, expectRangeY) {
if (data === undefined) data = ZERO_TO_FIFTY_STEPS;
var createGraph = function(opts, data, expectRangeX, expectRangeY) {
if (data === undefined) data = ZERO_TO_FIFTY_STEPS;