X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fstacked.js;h=3d997af9491622762991f218bb4a02b48a986cdc;hb=refs%2Ftags%2Fv2.0.0;hp=5e4c55c9d1a836574b8a4d299fcee453d0bf38c5;hpb=8bd58e55cfd7d903d68ec434be1f17f78dc11de1;p=dygraphs.git diff --git a/auto_tests/tests/stacked.js b/auto_tests/tests/stacked.js index 5e4c55c..3d997af 100644 --- a/auto_tests/tests/stacked.js +++ b/auto_tests/tests/stacked.js @@ -3,20 +3,18 @@ * * @author dan@dygraphs.com (Dan Vanderkam) */ -describe("stacked", function() { -var _origGetContext = Dygraph.getContext; +import Dygraph from '../../src/dygraph'; +import * as utils from '../../src/dygraph-utils'; -beforeEach(function() { - document.body.innerHTML = "
"; - Dygraph.getContext = function(canvas) { - return new Proxy(_origGetContext(canvas)); - } -}); +import Proxy from './Proxy'; +import CanvasAssertions from './CanvasAssertions'; +import Util from './Util'; -afterEach(function() { - Dygraph.getContext = _origGetContext; -}); +describe("stacked", function() { + +cleanupAfterEach(); +useProxyCanvas(utils, Proxy); it('testCorrectColors', function() { var opts = {