Commit Graph

22 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
45686c8aca Fix tests. 2023-05-17 10:27:57 +01:00
Dave Pearson
6139c95f3a Test that the event aliases are actually the same reference
I thought I thought I wanted what I thought but now I think about it I think
I thought wrong and now I think better.
2023-05-04 16:43:20 +01:00
Dave Pearson
8b36d29e74 Add a test for a radio set getting focus when a button gets clicked 2023-05-04 16:22:39 +01:00
Dave Pearson
19f4f64d96 Add tests for selection navigation in a radioset with no buttons pressed 2023-05-04 15:39:33 +01:00
Dave Pearson
e7d3b94334 Test that radioset wraps around when going off the bottom 2023-05-04 15:25:33 +01:00
Dave Pearson
b1443c0162 Test that radioset wraps around when going off the top 2023-05-04 15:22:30 +01:00
Dave Pearson
2113f415a0 Add a test that toggling a pressed radio button has no effect 2023-05-04 15:17:52 +01:00
Dave Pearson
b7cdbb0baa Test to ensure that Changed.control is Control.checkbox 2023-05-04 15:12:15 +01:00
Dave Pearson
0b4d7fb091 Test to ensure that Changed.control is Control.radio_button 2023-05-04 15:10:45 +01:00
Dave Pearson
c45f9358ee Change RadioSet so it's less a container of widgets and more a widget
Initially we went with a RadioSet being a simple container of RadioButtons,
with the user navigating the RadioButtons like you would any other set of
widgets. This was fine but it became pretty clear pretty quickly that having
to tab through a non-trivial collection of buttons in a set to get to the
next widget wasn't ideal.

This commit, satisfying #2368, takes over the navigation of the buttons
within the container, makes the container itself a focusable widget, and
sets up some new bindings to allow a more natural and efficient interaction
with the set.
2023-04-25 15:00:44 +01:00
Dave Pearson
a6a373161f Add some unit testing of the new navigation 2023-04-25 12:06:46 +01:00
Dave Pearson
52af6064ba Update the RadioSet tests to not dive into _buttons
It doesn't exist any more.
2023-04-03 21:10:37 +01:00
Will McGugan
373fc95fc1 Drop explicit sender attribute from messages (#1940)
* remove sender

* removed priority post

* timer fix

* test fixes

* drop async version of post_message

* extended docs

* fix no app

* Added control properties

* changelog

* changelog

* changelog

* fix for stopping timers

* changelog

* added aliases to radio and checkbox

* Drop sender from Message init

* drop time

* drop cast

* Added aliases
2023-03-06 10:52:34 +00:00
Dave Pearson
7bfed019c9 Improve the wording of a test description 2023-02-27 10:08:45 +00:00
Dave Pearson
445e29ff26 Improve the wording of a test description 2023-02-27 10:07:59 +00:00
Dave Pearson
db9b9e1c5d Fix a typo 2023-02-27 10:07:25 +00:00
Dave Pearson
7f90e4e850 Add a test for adding multiple on buttons to a radioset 2023-02-27 10:06:50 +00:00
Dave Pearson
719c831e3b Add some unit testing for RadioSet 2023-02-23 21:50:14 +00:00
Dave Pearson
d341b8b1b8 Fix a couple of copy/paste-o docstrings 2023-02-23 21:30:06 +00:00
Dave Pearson
236266248d Add CSS class tests for check boxes and radio buttons 2023-02-23 21:10:21 +00:00
Dave Pearson
7c6522e634 Add initial radio button tests 2023-02-23 21:07:39 +00:00
Dave Pearson
cfe7be3abe Some initial Checkbox unit testing
Lots more to come.
2023-02-23 16:46:58 +00:00