projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump to version 2 🎉
[dygraphs.git]
/
auto_tests
/
tests
/
step_plot_per_series.js
diff --git
a/auto_tests/tests/step_plot_per_series.js
b/auto_tests/tests/step_plot_per_series.js
index
a5ff5ee
..
805a65a
100644
(file)
--- a/
auto_tests/tests/step_plot_per_series.js
+++ b/
auto_tests/tests/step_plot_per_series.js
@@
-8,24
+8,17
@@
*
* @author julian.eichstaedt@ch.sauter-bc.com (Fr. Sauter AG)
*/
*
* @author julian.eichstaedt@ch.sauter-bc.com (Fr. Sauter AG)
*/
-describe("step-plot-per-series", function() {
-beforeEach(function() {
- document.body.innerHTML = "<div id='graph'></div>";
-});
+import Dygraph from '../../src/dygraph';
+import * as utils from '../../src/dygraph-utils';
-var origFunc = Dygraph.getContext;
+import Proxy from './Proxy';
+import CanvasAssertions from './CanvasAssertions';
-beforeEach(function() {
- document.body.innerHTML = "<div id='graph'></div>";
- Dygraph.getContext = function(canvas) {
- return new Proxy(origFunc(canvas));
- };
-});
+describe("step-plot-per-series", function() {
-afterEach(function() {
- Dygraph.getContext = origFunc;
-});
+cleanupAfterEach();
+useProxyCanvas(utils, Proxy);
it('testMixedModeStepAndLineFilled', function() {
var opts = {
it('testMixedModeStepAndLineFilled', function() {
var opts = {