X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fstep_plot_per_series.js;fp=auto_tests%2Ftests%2Fstep_plot_per_series.js;h=805a65adc6cbe83e825326b4506062b84ee52035;hb=ce31caf22475e3e1fd6d9fea192d61ff4fcd7fac;hp=a5ff5ee8d2d33f1a248c00542134c8814a081969;hpb=a4c3ece0a11e4e5c4f1f51a8bc8b7878d34ee052;p=dygraphs.git diff --git a/auto_tests/tests/step_plot_per_series.js b/auto_tests/tests/step_plot_per_series.js index a5ff5ee..805a65a 100644 --- 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) */ -describe("step-plot-per-series", function() { -beforeEach(function() { - document.body.innerHTML = "
"; -}); +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 = "
"; - 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 = {