mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
e28af8d594
* Docs for CheckboxWidget list and filter modes
This documents the `listField` and `filter` attributes.
* Tests for checkbox widget list mode
* Implement checkbox list mode
* WIP on implementing filter attr for checkboxes
* Improve CheckboxWidget documentation
* Refactor checkbox tests: move function to top
The big findNodeOfType function belongs at the top of the describe
block, so that the checkbox tests are more compact and easy to read.
* Move checkbox widget tests to end of file
The checkbox widget tests are long and involved, so we'll move them to
the end of the file so they aren't a huge block of code you need to read
past to find the next test.
* Improve formatting of CheckboxWidget docs
The \define() calls that are short enough to fit on one line should be
put on one line, for readability. The ones that are quite long have been
kept on multiple lines, for readability.
* Added more passing tests for checkbox widget
* Add some failing tests for checkbox widget
The filter mode where neither checked nor unchecked is specified (in
which case an empty filter result means false and a non-empty result
means true) is not working yet.
* Make failing tests pass
* Uncomment (and improve) test for field mode
We're now ready to start working on making this test pass. (There was
also one small mistake in the test, which this commit corrects).
* All tests now passing
* No indeterminate checkboxes in simple modes
The simple checkbox modes (field and index) should not produce
indeterminate checkboxes. That should be reserved for the advanced modes
(list and filter).
* Minor improvement to unit tests
* Allow indeterminate checkboxes in list and filter modes
This change may require some tweaks to the unit tests to be able to test
it properly.
* Slightly easier to read tests
* Two more tests for list mode
* Greatly simplify unit test code
Turns out there's no need to jump through Object.getPrototypeOf hoops.
* Minor simplification of unit test
* Add tests for indeterminate in list & filter modes
With this, the set of tests is complete.
* More tests to specify list mode behavior
* Unfocus tests so all tests run
* Update docs to say "new in 5.2.3" insetad of 5.2.2
* Move checkbox widget tests into their own file
The test-widget.js file was getting too long with all the checkbox
tests added, so we'll move the checkbox tests into their own file.
* Add checkbox widget tests for index mode
This commit also adds tests for index list mode (with a listIndex
attribute that will parallel the listField attribute) but leaves them
commented out because they don't pass yet: the code that implements the
listIndex attribute hasn't been written yet).
* Add listIndex attribute to checkbox widget
* Remove code that lets checkboxes be indeterminate
This reverts commit
|
||
---|---|---|
.. | ||
aws | ||
classicparserdemo | ||
codemirrordemo | ||
d3demo | ||
de-AT | ||
de-AT-server | ||
de-DE | ||
dev | ||
dynaviewdemo | ||
empty | ||
es-ES | ||
es-ES-server | ||
fr-FR | ||
fr-FR-server | ||
full | ||
highlightdemo | ||
innerwikidemo | ||
introduction | ||
ja-JP | ||
katexdemo | ||
ko-KR | ||
ko-KR-server | ||
markdowndemo | ||
pluginlibrary | ||
prerelease | ||
resumebuilder | ||
server | ||
server-external-js | ||
share | ||
tahoelafs | ||
test | ||
testcommonjs | ||
text-slicer | ||
translators | ||
tw5.com | ||
tw5.com-docs | ||
tw5.com-server | ||
tw5tank | ||
tw5tiddlyweb | ||
tw.org | ||
upgrade | ||
xlsx-utils | ||
xlsx-utils-server | ||
zh-Hans | ||
zh-Hant |