mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1028712 - Add tests to check that when <input type=number> is stepped it isn't put into range overflow/underflow, even when its value is empty and min/max is above/below zero respectively. r=jwatt
This commit is contained in:
parent
7ba086a59b
commit
9b1168e5e8
@ -170,6 +170,12 @@ function checkStepDown()
|
||||
[ '10', '2', '0', '4', '5', '0', false ],
|
||||
// value = "" (NaN).
|
||||
[ '', null, null, null, null, '-1', false ],
|
||||
[ '', '2', null, null, null, '-2', false ],
|
||||
[ '', '2', '3', null, null, '3', false ],
|
||||
[ '', null, '3', null, null, '3', false ],
|
||||
[ '', '2', '3', '8', null, '3', false ],
|
||||
[ '', null, '-10', '10', null, '-1', false ],
|
||||
[ '', '3', '-10', '10', null, '-1', false ],
|
||||
// With step = 'any'.
|
||||
[ '0', 'any', null, null, 1, null, true ],
|
||||
[ '0', 'ANY', null, null, 1, null, true ],
|
||||
@ -485,6 +491,13 @@ function checkStepUp()
|
||||
[ '-3', '2', '-6', '-1', null, '-2', false ],
|
||||
// value = "" (NaN).
|
||||
[ '', null, null, null, null, '1', false ],
|
||||
[ '', null, null, null, null, '1', false ],
|
||||
[ '', '2', null, null, null, '2', false ],
|
||||
[ '', '2', '3', null, null, '3', false ],
|
||||
[ '', null, '3', null, null, '3', false ],
|
||||
[ '', '2', '3', '8', null, '3', false ],
|
||||
[ '', null, '-10', '10', null, '1', false ],
|
||||
[ '', '3', '-10', '10', null, '2', false ],
|
||||
// With step = 'any'.
|
||||
[ '0', 'any', null, null, 1, null, true ],
|
||||
[ '0', 'ANY', null, null, 1, null, true ],
|
||||
|
Loading…
Reference in New Issue
Block a user