1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-23 03:46:55 +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
..
2017-07-03 20:34:58 +01:00
2017-11-18 19:53:52 +00:00
2023-01-12 20:59:34 +00:00
2023-07-01 12:59:42 +01:00
2023-01-17 23:13:58 +00:00
2023-06-13 15:57:24 +01:00
2023-05-09 15:46:54 +01:00
2023-06-11 10:36:02 +01:00
2023-06-11 10:36:02 +01:00
2023-01-17 23:13:58 +00:00
2023-08-20 11:45:38 +01:00
2023-09-21 18:17:28 +01:00
2014-12-05 10:20:32 +00:00