Index: components/uiOptions/js/UIOptions.js =================================================================== --- components/uiOptions/js/UIOptions.js (revision 8629) +++ components/uiOptions/js/UIOptions.js (working copy) @@ -130,6 +130,7 @@ that.events.modelChanged.fire(model, that.model, source); that.model = model; that.locate("thumb").attr("aria-valuenow", that.model); + that.locate("thumb").attr("aria-valuetext", that.model + " " + that.options.unitText); } }; @@ -152,7 +153,8 @@ }, min: 0, max: 100, - value: null + value: null, + unitText: "point" }); })(jQuery, fluid_1_2); @@ -458,7 +460,8 @@ type: "fluid.textfieldSlider", options: { min: 1, - max: 10 + max: 10, + unitText: "em" } }, selectors: { Index: tests/component-tests/uiOptions/js/TextfieldSliderTests.js =================================================================== --- tests/component-tests/uiOptions/js/TextfieldSliderTests.js (revision 8629) +++ tests/component-tests/uiOptions/js/TextfieldSliderTests.js (working copy) @@ -45,11 +45,12 @@ textfield.val(valToTest); textfield.change(); jqUnit.assertEquals("Textfield value should be the " + expected, expected, textfield.val()); - jqUnit.assertEquals("The ARIA value now should be " + expected, expected, thumb.attr("aria-valuenow")); + jqUnit.assertEquals("The ARIA value now should be " + expected, expected, thumb.attr("aria-valuenow")); + jqUnit.assertEquals("The ARIA valuetext should be ", slider.slider("value") + " " + "point", thumb.attr("aria-valuetext")); }; tests.test("Test Min/Max Size", function () { - expect(18); + expect(24); var textfieldSlider = fluid.textfieldSlider(".fl-textfield-slider", {min: 5, max: 55}); testSetting(56, 55); @@ -61,7 +62,7 @@ }); tests.test("Test Negative Scale", function () { - expect(15); + expect(20); fluid.textfieldSlider(".fl-textfield-slider", {min: -15, max: -5}); testSetting(56, -5);