Commit Graph

95 Commits

Author SHA1 Message Date
BDisp
41971a6e5a Fix all tests. 2024-03-25 17:36:35 +00:00
BDisp
d2a2ff1f99 Fixes #3340. Mouse ButtonShift doesn't work anymore on Windows Terminal. 2024-03-19 23:42:44 +00:00
Tig
8cf63d565a Added some NeedDisplay unit tess 2024-03-18 12:46:35 -07:00
Tig
df4f479ce6 Fixed drag bug; added mouse unit tests 2024-03-13 20:24:46 -08:00
Tig
919f8e5991 Merge branch 'v2_develop' into v2_3273_FOUND_finddeepestview 2024-03-10 10:56:14 -06:00
Tig
ce89aaf961 Merge branch 'v2_develop' into v2_3310-OnMouseClick-CanSetFocus 2024-03-10 09:34:01 -06:00
Tig
0649cd2149 Adds CanFocus/SetFocus test 2024-03-10 07:32:42 -08:00
Tig
7d6d5280f1 Adds CanFocus/SetFocus test 2024-03-10 07:30:42 -08:00
Tig
667912a610 Fixed a buinch of bugs. Updated unit tests including some that test all views to utilize TheoryData 2024-03-09 09:00:13 -09:00
Tig
7119ee74ff Adornment w/ subview unit tests 2024-03-08 23:50:49 -07:00
Tig
e8c851631f Ensured adornments layout 2024-03-08 23:25:14 -07:00
Tig
3e10486771 rebased and added mouseevent diag flag 2024-03-07 12:13:30 -07:00
Tig
1be3851154 Started on unit test 2024-03-07 09:04:24 -07:00
Tig
a518cb37ee Refactored Diagnostics 2024-03-07 08:55:13 -07:00
Tig
4991fc00ee Merge branch 'v2_3273_FOUND_finddeepestview' of tig:tig/Terminal.Gui into v2_3273_FOUND_finddeepestview 2024-03-06 22:19:21 -07:00
Tig
3f1e184e7e Removed ClearFrame API. Not needed. 2024-03-06 22:03:37 -07:00
Tig
3888c86ee4 Fixed unit tests that broke due to rebase 2024-03-06 21:37:22 -07:00
Tig
3c3babb7fd git rebase --onto v2_3298_REDO-xxxToScreen-improvements 2024-03-06 21:32:01 -07:00
Tig
745e2c21a2 Added low-level unit tests; found latent bugs in View.Clear, Bounds, etc... Fixed. 2024-03-06 20:38:25 -07:00
Tig
bb5c899864 cherry picked from old branch 2024-03-06 09:44:21 -07:00
Tig
17f9927a76 Re-removed clamped 2024-03-06 09:39:05 -07:00
Tig Kindel
23e65d63a7 Added Padding button to Adornments scenario 2024-03-04 12:29:10 -07:00
Tig Kindel
bcccce4394 Removed findAdornments param and made FindDeepestView internal 2024-03-04 12:13:34 -07:00
Tig Kindel
3d30b06212 Fixed Menu: Was not dealing with Border correctly 2024-03-04 12:10:52 -07:00
Tig Kindel
efaaec41c2 Added simple Arragement unit test 2024-03-04 11:09:39 -07:00
Tig Kindel
e3ad40a6fa Reenabled PositionTopLevel and fixed bug in TextField 2024-03-04 09:54:52 -07:00
Tig Kindel
1eaf8a713d Simplified test 2024-03-01 13:01:25 -07:00
Tig Kindel
7036f5f8f8 Cleaned up MouseClick related stuff. 2024-03-01 11:42:28 -07:00
Tig Kindel
bd8edbe201 Merged MouseEvent() and OnMouseEvent() 2024-02-29 17:29:25 -07:00
Tig Kindel
2432bf76b8 Added Adornment.FrameToScreen tests that prove old behavior was bad 2024-02-27 10:52:11 -07:00
Tig Kindel
f8283ecc83 Fixed Adornment.Bounds and added new tests 2024-02-27 09:58:54 -07:00
Tig Kindel
aa4e2c0ae7 FindDeepestView now correctly supports start with Adornments 2024-02-27 09:51:02 -07:00
Tig Kindel
3bc2909d73 WIP (broken) - support adornmnts 2024-02-27 08:21:01 -07:00
Tig Kindel
cecfb71ee1 Fixed Visible bug and addd unit tests 2024-02-27 08:00:59 -07:00
Tig Kindel
248efc2cc2 Simplified FindDeepestVieew 2024-02-27 07:43:13 -07:00
Tig Kindel
55b7858f46 Added FindDeepestView tests 2024-02-27 06:10:12 -07:00
Brandon Thetford
1ebc99b226 Fix this test for Release builds 2024-02-25 20:49:14 -07:00
Brandon Thetford
bfedfee9ee Simplify construction of new Rectangle, Size, Point, and *F instances
Use *.Empty when possible.
Use `with` in a few cases.
Also add some TODO commentary
2024-02-25 20:05:00 -07:00
Brandon Thetford
ac0b655b1a Add explicit casts to a few tests to ensure the correct type is tested. 2024-02-22 19:56:09 -07:00
Brandon Thetford
17d028432e Re-apply Rect->Rectangle name changes in these files 2024-02-22 16:03:06 -07:00
Brandon Thetford
70ca504687 This check is redundant with the rectangle check below 2024-02-22 16:01:59 -07:00
Brandon Thetford
3d807c3833 Merge branch 'v2_develop' into v2_3256_prepare_for_Rect_removal
* v2_develop:
  Fixes #3039. Fix View.HotKey (#3249)
2024-02-22 15:51:04 -07:00
Tig
16055c53b0 Fixes #3039. Fix View.HotKey (#3249)
* Added View.DefaultCommand etc... Started on dedicated scenario

* Fixed un-shifted hotkeys -> Fixed Key Equals. Fixed WindowsDriver passing wrong key. Etc.

* Fixed Key Bindings and HotKeys

* Fixed Key Bindings and HotKeys

* Label now correctly supports hotkey

* Disabled unix hot keys because they are annoying and get in the way

* Updated nuget. fixed warnings

* Trying to fix ci/ci issue

* Trying to fix ci/ci issue

* Trying to fix ci/ci issue

* Changed TextChangingEventArgs to inherit from CancelEventArgs

* TextChangingEventArgs -> TextEventArgs

* Simplified Text events by having only on args class

* Fixed unit tests fail

* Simplified by removing TitleEventArgs

* POC of Title being primary for hotkey. Label and Button hacked to work

* POC of Title being primary for hotkey. Label and Button hacked to work - all unit tests pass

* Dropped Microsoft.NETFramework.ReferenceAssemblies

* Fixed Dialogs scenario hotkeys

* Fixed build warnings

* Fixed Border Title render bug

* Regiggering default command handling

* Regiggering default command handling

* Checkbox clean up

* Added StateEventArgs POC

* Command.Default -> Command.HotKey

* Command.Default -> Command.HotKey - fixed TableView

* Command.Default -> Command.HotKey - fixed TableView

* Updated reactive example

* Fixed Toplevel.BringOverlappedTopToFront - was reordering SubViews when it shouldn't

* WIP - broke

* Finished impl of StateEventArgs

* Deleted ToggleEventArgs.cs. Added StateEventArgs.cs

* XML doc fix

* Removed old code

* Removed commented out code

* Label.Clicked -> Label.Accept (missed this before)

* Removed Labels as Buttons scenario as it's not really  useful

* Moved SubView tests to own file

* Moved SubView tests to own file

* Simplified Text test

* Added OnAccept test

* Deleted DefaultCommand

* Modernized CheckBox

* New button test

* Cleaned up RadioGroup; added tests

* KeyCode->Key in ListView

* Added ListView unit tests

* ListView now does Accept correctly

* TreeView now does Accept correctly

* Cleaned up some TextField tests

* TextView now handles Accept properly; updated CharMap and Adornments scenarios to test

* Fixed ComboBox to deal with TextView now handles Accept properly; updated CharMap and Adornments scenarios to test

* Removed un-needed using statement
2024-02-22 15:11:26 -07:00
Brandon Thetford
56fc0b23d1 Some more categorization 2024-02-20 20:19:52 -07:00
Brandon Thetford
b65e2fb5f8 Use raw strings for better clarity 2024-02-20 20:19:52 -07:00
Brandon Thetford
f3c1f5c67d Add a category to this 2024-02-20 20:19:52 -07:00
Brandon Thetford
c50c4559d0 Collection expressions and constants 2024-02-20 20:19:52 -07:00
Brandon Thetford
e670960ee0 Test against Rectangles, not strings 2024-02-20 20:19:52 -07:00
Brandon Thetford
8252203c75 These should be testing against the Rectangles, not the strings 2024-02-20 20:19:52 -07:00
Brandon Thetford
f0b2fb1820 Fix these tests the same way as the previous commit 2024-02-20 20:19:52 -07:00