Correcting test semantics

Despite what the test comment says, the orientation of this slider is horizontal.
This commit is contained in:
Tim Schaub
2013-03-18 21:50:00 -06:00
parent 0fc7ba5bfb
commit 928457e174

View File

@@ -90,7 +90,8 @@ describe('ol.control.ZoomSlider', function() {
it('creates a goog.fx.Dragger', function() {
expect(zoomslider.dragger_ instanceof goog.fx.Dragger).to.be(true);
expect(zoomslider.dragger_.limits instanceof goog.math.Rect).to.be(true);
expect(zoomslider.direction_).to.be(1); // vertical
var horizontal = ol.control.ZoomSlider.direction.HORIZONTAL;
expect(zoomslider.direction_).to.be(horizontal); // vertical
});
});