1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-05 13:40:02 +00:00
Robin Munn 8effb3f218
Fix list widget bug with counter-last when appending items (#7712)
* Add failing test for list widget with counter-last

The failing test appends a value to a list without changing the rest of
the list, and the counter-last value doesn't get updated correctly when
that happens. Also added another test, which passes, testing removing
the last item of the list, just in case of a regression.

* Improve unit tests for counter-last list widget bug

The unit tests were looking very similar to each other, so I factored
out the common code and made them into simple data-driven tests.

* Fix bug where counter-last fails in list widget

The only scenario that was failing was when counter-last was used, but
the list was strictly appended to with no other changes made. The one
unit test that was failing now passes with this fix.

* Improve bugfix to list widget counter-last

Now we only refresh the last item if it was truly necessary.
2023-09-24 20:19:50 +01:00
..
2014-04-27 20:03:33 +01:00
2023-04-19 11:55:25 +01:00
2022-07-21 15:30:56 +01:00
2021-10-02 16:17:07 +01:00
2023-03-10 09:41:36 +00:00
2013-11-10 19:22:10 +00:00
2021-10-30 11:42:22 +01:00