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
/
fill_step_plot.js
diff --git
a/auto_tests/tests/fill_step_plot.js
b/auto_tests/tests/fill_step_plot.js
index
6406016
..
1c43145
100644
(file)
--- a/
auto_tests/tests/fill_step_plot.js
+++ b/
auto_tests/tests/fill_step_plot.js
@@
-4,23
+4,25
@@
*
* @author benoitboivin.pro@gmail.com (Benoit Boivin)
*/
*
* @author benoitboivin.pro@gmail.com (Benoit Boivin)
*/
+import Dygraph from '../../src/dygraph';
+import * as utils from '../../src/dygraph-utils';
+import CanvasAssertions from './CanvasAssertions';
+import Proxy from './Proxy';
+
describe("fill-step-plot", function() {
describe("fill-step-plot", function() {
-beforeEach(function() {
- document.body.innerHTML = "<div id='graph'></div>";
-});
+cleanupAfterEach();
-var origFunc =
Dygraph
.getContext;
+var origFunc =
utils
.getContext;
beforeEach(function() {
beforeEach(function() {
- document.body.innerHTML = "<div id='graph'></div>";
- Dygraph.getContext = function(canvas) {
+ utils.getContext = function(canvas) {
return new Proxy(origFunc(canvas));
};
});
afterEach(function() {
return new Proxy(origFunc(canvas));
};
});
afterEach(function() {
-
Dygraph
.getContext = origFunc;
+
utils
.getContext = origFunc;
});
});