Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | //////////////////////////////////////////////////////////////////////////////// |
michael@0 | 2 | // Public methods |
michael@0 | 3 | |
michael@0 | 4 | /** |
michael@0 | 5 | * Tests nsIAccessibleValue interface. |
michael@0 | 6 | * |
michael@0 | 7 | * @param aAccOrElmOrId [in] identifier of accessible |
michael@0 | 8 | * @param aValue [in] accessible value (nsIAccessible::value) |
michael@0 | 9 | * @param aCurrValue [in] current value (nsIAccessibleValue::currentValue) |
michael@0 | 10 | * @param aMinValue [in] minimum value (nsIAccessibleValue::minimumValue) |
michael@0 | 11 | * @param aMaxValue [in] maximumn value (nsIAccessibleValue::maximumValue) |
michael@0 | 12 | * @param aMinIncr [in] minimum increment value |
michael@0 | 13 | * (nsIAccessibleValue::minimumIncrement) |
michael@0 | 14 | */ |
michael@0 | 15 | function testValue(aAccOrElmOrId, aValue, aCurrValue, |
michael@0 | 16 | aMinValue, aMaxValue, aMinIncr) |
michael@0 | 17 | { |
michael@0 | 18 | var acc = getAccessible(aAccOrElmOrId, [nsIAccessibleValue]); |
michael@0 | 19 | if (!acc) |
michael@0 | 20 | return; |
michael@0 | 21 | |
michael@0 | 22 | is(acc.value, aValue, "Wrong value of " + prettyName(aAccOrElmOrId)); |
michael@0 | 23 | |
michael@0 | 24 | is(acc.currentValue, aCurrValue, |
michael@0 | 25 | "Wrong current value of " + prettyName(aAccOrElmOrId)); |
michael@0 | 26 | is(acc.minimumValue, aMinValue, |
michael@0 | 27 | "Wrong minimum value of " + prettyName(aAccOrElmOrId)); |
michael@0 | 28 | is(acc.maximumValue, aMaxValue, |
michael@0 | 29 | "Wrong maximum value of " + prettyName(aAccOrElmOrId)); |
michael@0 | 30 | is(acc.minimumIncrement, aMinIncr, |
michael@0 | 31 | "Wrong minimum increment value of " + prettyName(aAccOrElmOrId)); |
michael@0 | 32 | } |