1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00
TiddlyWiki5/editions/test/tiddlers/tests
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
..
data Fix transclude inefficiency (#7647) 2023-07-30 18:04:05 +01:00
modules/utils CSV parser improvements (#7042) 2022-11-20 17:51:01 +00:00
test-action-widgets.js action-setfield shouldn't write to the current tiddler if the $tiddler attribute is present but has evaluated to a missing attribute 2022-04-16 18:02:27 +01:00
test-backlinks.js Add backlinks indexer (#4421) 2020-03-26 13:15:02 +00:00
test-checkbox-widget.js Checkbox widget should not affect date fields (#7448) 2023-05-11 18:28:44 +01:00
test-compare-filter.js Add new compare filter operator 2020-04-13 10:03:01 +01:00
test-deserialize-operator.js Adds a deserialize filter operator (#7511) 2023-06-03 14:33:10 +01:00
test-deserializers.js Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
test-filters.js Ensure shadow tiddler listings are always sorted 2023-07-13 19:27:50 +01:00
test-html-parser.js Adds Text substitution support in widget attributes and new operator (#7526) 2023-06-24 14:57:15 +01:00
test-json-filters.js Fix json operators retrieving properties of strings and numbers 2022-12-30 15:28:34 +00:00
test-linked-list.js Linked-List refactor (#6056) 2022-11-27 17:48:08 +00:00
test-parsetextreference.js Parameterised transclusions (#6666) 2023-04-19 11:55:25 +01:00
test-popup.js Fixed PR to fix popup position if popup is triggered from within an offsetParent element (#7013) 2022-12-01 21:16:44 +00:00
test-prefixes-filter.js Add a :then filter run prefix (#7392) 2023-06-24 18:07:34 +01:00
test-tags.js Fix for tag ordering issue #6382 (#6383) 2022-02-21 15:34:05 +00:00
test-tiddler.js Add isEqual() method to tiddlers 2014-06-23 08:09:59 +01:00
test-utils.js Parameterised transclusions (#6666) 2023-04-19 11:55:25 +01:00
test-widget.js Fix list widget bug with counter-last when appending items (#7712) 2023-09-24 20:19:50 +01:00
test-wikitext-parser.js Parameterised transclusions (#6666) 2023-04-19 11:55:25 +01:00
test-wikitext-tabs-macro.js Parameterised transclusions (#6666) 2023-04-19 11:55:25 +01:00
test-wikitext.js Switch off CamelCase linking by default (#7513) 2023-06-08 21:45:14 +01:00