mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +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
|
||
---|---|---|
.. | ||
action-confirm.js | ||
action-createtiddler.js | ||
action-deletefield.js | ||
action-deletetiddler.js | ||
action-listops.js | ||
action-log.js | ||
action-navigate.js | ||
action-popup.js | ||
action-sendmessage.js | ||
action-setfield.js | ||
action-setmultiplefields.js | ||
browse.js | ||
button.js | ||
checkbox.js | ||
codeblock.js | ||
count.js | ||
diff-text.js | ||
draggable.js | ||
droppable.js | ||
dropzone.js | ||
edit-binary.js | ||
edit-bitmap.js | ||
edit-shortcut.js | ||
edit-text.js | ||
edit.js | ||
element.js | ||
encrypt.js | ||
entity.js | ||
eventcatcher.js | ||
fieldmangler.js | ||
fields.js | ||
image.js | ||
importvariables.js | ||
jsontiddler.js | ||
keyboard.js | ||
let.js | ||
link.js | ||
linkcatcher.js | ||
list.js | ||
log.js | ||
macrocall.js | ||
messagecatcher.js | ||
navigator.js | ||
password.js | ||
qualify.js | ||
radio.js | ||
range.js | ||
raw.js | ||
reveal.js | ||
scrollable.js | ||
select.js | ||
setmultiplevariables.js | ||
setvariable.js | ||
text.js | ||
tiddler.js | ||
transclude.js | ||
vars.js | ||
view.js | ||
widget.js | ||
wikify.js |