-CustomBarsTestCase._origFunc = Dygraph.getContext;
-CustomBarsTestCase.prototype.setUp = function() {
- document.body.innerHTML = "<div id='graph'></div>";
- Dygraph.getContext = function(canvas) {
- return new Proxy(CustomBarsTestCase._origFunc(canvas));
+describe("custom-bars", function() {
+
+cleanupAfterEach();
+
+var _origFunc = utils.getContext;
+beforeEach(function() {
+ utils.getContext = function(canvas) {
+ return new Proxy(_origFunc(canvas));