Skip to content

Commit

Permalink
remove empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Haitzer committed Jul 6, 2017
1 parent cc2138b commit 1839f5b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/specs/StepReachMaxValueSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ describe("TickMaxValueNotATickBehavior", function() {
scale: "logarithmic",
value: 44
};

slider = new Slider(document.getElementById(SLIDER_ID), options);
});

it("Value should contain max value when slider is moved to outer right position", function() {

var sliderLeft = slider.sliderElem.offsetLeft;
var offsetY = slider.sliderElem.offsetTop;
// I think the + 10 work because it is half of the handle size;
var offsetX = sliderLeft + slider.sliderElem.clientWidth + 10;

var expectedValue = slider.options.max;
var mouseEvent = getMouseDownEvent(offsetX, offsetY);

Expand All @@ -33,15 +30,11 @@ describe("TickMaxValueNotATickBehavior", function() {
});
});



afterEach(function() {
slider.destroy();
});

// helper functions


function getMouseDownEvent(offsetXToClick, offsetYToClick) {
var args = [
'mousedown', // type
Expand All @@ -63,7 +56,6 @@ describe("TickMaxValueNotATickBehavior", function() {

var event = document.createEvent('MouseEvents');
event.initMouseEvent.apply(event, args);

return event;
}

Expand Down

0 comments on commit 1839f5b

Please sign in to comment.