-
Couldn't load subscription status.
- Fork 420
Open
Labels
regression-testingRelated to AVA regression tests of example pages or AVA framework implementation within repoRelated to AVA regression tests of example pages or AVA framework implementation within repo
Description
Line 335 at test/tests/spinbutton_datepicker.js
After sending 31 up arrows to the day spinner, the day should be:
Today (25th of February 2022) this assert fails.
This is likely because of the modulo:
control = (control + 30) % daysInMonth;
controlstarted out at 25controlis updated withcontrol = (control + 1) % daysInMonth; (25 + 1) % 28 = 26controlis updated againcontrol = (control + 30) % daysInMonth; (26 + 30) % 28 = 0
There’s no day “0”
Metadata
Metadata
Assignees
Labels
regression-testingRelated to AVA regression tests of example pages or AVA framework implementation within repoRelated to AVA regression tests of example pages or AVA framework implementation within repo