Opened 13 years ago
Closed 11 years ago
#8884 closed task (fixed)
Slider: bump boundary tests indeterminate
Reported by: | bill | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Dijit - Form | Version: | 1.3.0b3 |
Keywords: | dohfail | Cc: | |
Blocked By: | Blocking: |
Description
The a11yBoundaryTest and boundaryTest in Slider_a11y.html and Slider_mouse.html are indeterminate. I.E., they sometimes fail, due to a problem with the test.
Those two tests test the sliders to see that clicking the left/right button (or using the left/right arrow keys) moves the slider to it's min/max value. The first test, for example, sets the slider's value at 0.2 and then does a left arrow. This will move the slider to 0, unless the slider is very wide, in which case it will take two (or more) arrow clicks to move to zero. (NOTE: this fails on sliders where discreteValues is *not* specified.)
test_Slider.html defines the width of the first slider as style="width: 50%" which exacerbates the problem since it's different depending on your browser window. But, you can reproduce the problem by setting style="width: 764px".
A further complication is that setting style="width: 764px" means that the number of possible positions of the handle is less than 764, due to the width of the button nodes and margin/borders/etc.
So, ideally we should have tests for left and right arrow on sliders when discreteValues is not set, but it's hard to write them.
Change History (7)
comment:1 Changed 13 years ago by
Milestone: | 1.4 → future |
---|
comment:2 Changed 11 years ago by
Component: | Dijit → Dijit - Form |
---|---|
Owner: | set to Douglas Hays |
comment:3 Changed 11 years ago by
Keywords: | dohfail added |
---|
comment:4 Changed 11 years ago by
Milestone: | future → 1.7 |
---|---|
Status: | new → assigned |
comment:6 Changed 11 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Starting with [26732] I'm getting a failure in Spinner_mouse.html on FF5/windows:
GROUP "drag tests" has 1 test to run dojo.js (line 633) _AssertFailure: http://192.168.182.22/clean/dojo/dojo.js:336 doh._AssertFailure: assertEqual() failed: expected 100.13003901170352 but got 100 with hint: Expected max value of 100, got 100.13003901170352 dojo.js (line 633) doh._AssertFailure console.error(Array.prototype.join.call(arguments, " ")) ERROR IN: (function () {var d = new doh.Deferred;var slider = dijit.byId("slider1");slider.set("value", 50);dojo.window.scrollIntoView(slider.domNode);doh.robot.mouseMoveAt(slider.focusNode, 1, 0);doh.robot.mousePress({left: true}, 500);doh.robot.mouseMoveAt(slider.incrementButton, 1000, 0);doh.robot.mouseRelease({left: true}, 500);doh.robot.mouseMoveAt(slider.decrementButton, 1000, 0);doh.robot.sequence(d.getTestCallback(function () {var value = slider.get("value");doh.is(value, 100, "Expected max value of 100, got " + value);}), 1000);return d;}) dojo.js (line 633) FAILED test: horizontal 4308 ms dojo.js (line 633)
(In [17025]) Make slider1 narrower to avoid test failures on wide browser window. We still don't have a good test though for when discreteValues is *not* specified (i.e a test to make sure that the arrow keys move up/down 1 pixel), so leaving ticket open. Refs #8884.