\SpinnerFieldTest
Tests for Spinner Field.
- Author: Janne Klouman <janne@klouman.com>
- License: https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause
Synopsis
class SpinnerFieldTest
extends SapphireTest
{
- // methods
- public void testMinValidation()
- public void testMaxValidation()
- public void testStepValidation()
Hierarchy
Extends
- SapphireTest
Methods
public
- testMaxValidation() — Tests the 'max' option validation. It should restrain the value from being above what the 'max' option is set to -- IF enforceAboveMaxValidation is set to true (which it is by default).
- testMinValidation() — Tests the 'min' option validation. It should restrain the value from being below what the 'min' option is set to IF enforceBelowMinValidation is set to true (which it is by default).
- testStepValidation() — Test step validation. It should restrain the value from not being evenly divisible by the 'step' UI option -- IF enforceStepValidation is set to true (which it isn't by default).