From 928457e174acaae202b9515bf7f58877949bd1a2 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 18 Mar 2013 21:50:00 -0600 Subject: [PATCH] Correcting test semantics Despite what the test comment says, the orientation of this slider is horizontal. --- test/spec/ol/control/zoomslider.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/spec/ol/control/zoomslider.test.js b/test/spec/ol/control/zoomslider.test.js index fcf457291c..eac8dada73 100644 --- a/test/spec/ol/control/zoomslider.test.js +++ b/test/spec/ol/control/zoomslider.test.js @@ -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 }); });