Commit Graph

419 Commits

Author SHA1 Message Date
Tig
4893ef7b90 Merge branch 'develop' into unittests_refactor 2022-10-30 15:07:39 -07:00
Tig Kindel
9ee47ad3dd moved scenario tests namespace 2022-10-29 20:04:47 -06:00
Tig Kindel
c1d976c781 refactored AssertDriverContents out of GraphView tests 2022-10-29 19:53:08 -06:00
Tig Kindel
f5bb3552e0 Minor clean up of UI Catalog 2022-10-29 17:38:29 -06:00
BDisp
60a94ebab3 Added ContentOffset and ContentSize unit tests. 2022-10-26 12:54:23 +01:00
BDisp
6a509bd0f2 Added one more unit test. 2022-10-26 12:34:13 +01:00
BDisp
81d7c61444 Fixes #2135. Character Map scenario doesn't show the content view. 2022-10-25 15:20:10 +01:00
Charlie Kindel
6eac49383e Merge branch 'develop' into fix_2109_menubar_spacing 2022-10-21 16:04:36 -06:00
BDisp
802820edfa Fixes #2121. ContextMenu: When open, Shift-F10 should close menu. 2022-10-21 21:42:55 +01:00
Charlie Kindel
d93a247a4d documenting behavior 2022-10-21 08:12:26 -06:00
Charlie Kindel
99ab16d111 Merge branch 'develop' into fix_2109_menubar_spacing 2022-10-20 20:02:36 -06:00
Tig
c0da5a4079 Merge branch 'develop' into cleanup_3 2022-10-20 18:58:51 -07:00
Charlie Kindel
40df03d3e3 Finished refactoring tests 2022-10-20 17:56:08 -06:00
Charlie Kindel
eb7fe9f126 further progress 2022-10-20 15:38:50 -06:00
Charlie Kindel
3fd6f68b4a Merge branch 'develop' into fix_2109_menubar_spacing 2022-10-20 09:44:55 -06:00
Tig
ac6f7756b7 Merge branch 'develop' into view-clear-background 2022-10-20 07:30:09 -07:00
Tig
350f1eb517 Merge branch 'develop' into cleanup_3 2022-10-20 07:23:12 -07:00
Charlie Kindel
c15d9bcc57 refactoring menutests 2022-10-20 08:15:54 -06:00
BDisp
769f5c8091 Improves the TabView minimum size and added more unit tests. 2022-10-19 20:59:10 +01:00
BDisp
46ff335836 Fix unit tests. 2022-10-19 20:46:12 +01:00
tznind
b20483cc68 Change MouseEvent to a mutable class (previously struct) and added Handled 2022-10-19 13:57:53 +01:00
Alexandru Ciobanu
441960e25e Added two unit tests to check for the MakePrintable cases. 2022-10-19 13:41:02 +01:00
tznind
67839d108a Fix copy/paste error in SuppressKey test 2022-10-19 07:52:13 +01:00
tznind
20856f0ce0 Non breaking implementation of cancellable root mouse events 2022-10-19 07:46:52 +01:00
BDisp
eaaa636497 Adding a more realistic key down/up event with null key. 2022-09-29 19:11:09 +01:00
BDisp
702ef46727 Fixes #2069. KeyDown and KeyUp events must run before OnKeyDown and OnKeyUp. 2022-09-29 19:10:56 +01:00
BDisp
b6715863a3 Fixes #2071. DrawContentComplete event is never called from the base if it's overridden. 2022-09-28 17:16:48 +01:00
Tig Kindel
32e7b63b77 Merge pull request #2065 from BDisp/mouseGrabView-track-feature
Fixes #2064. mouseGrabView must have a track to allow the views who use it having some control.
2022-09-26 11:04:27 -07:00
dependabot[bot]
41072af7a2 Bump Microsoft.NET.Test.Sdk from 17.3.1 to 17.3.2
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.3.1 to 17.3.2.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.3.1...v17.3.2)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 15:03:58 +00:00
BDisp
10fb8cda63 Replacing to MouseGrabView. 2022-09-24 23:45:13 +01:00
BDisp
834a942302 Fixes #2064. mouseGrabView must have a track to allow the views who use it having some control. 2022-09-24 23:15:22 +01:00
BDisp
92dc7f04d4 Fixes #2053. MessageBox.Query still not wrapping with v1.8.0 on windows/net6.0. 2022-09-21 18:54:45 +01:00
BDisp
d542548595 Incremented the sleep timeout. 2022-09-18 02:16:11 +01:00
BDisp
17b98ad294 lock cannot have a null argument and sometime the Clipboard.Contents is null. 2022-09-18 01:26:52 +01:00
BDisp
e821435bac Including also the variables inside the lock. 2022-09-18 01:03:20 +01:00
BDisp
c350886b5d Fixes #2047. Tests are failing locally after merging #2046 2022-09-18 00:28:31 +01:00
BDisp
aa83e6c146 Fixes #2045. TrySetClipboardData test must be enclosed with a lock. 2022-09-17 19:50:25 +01:00
BDisp
6f891d4a02 Fixes #2039. Surrounding the Clipboard.Contents with a lock keyword. 2022-09-17 17:33:26 +01:00
BDisp
281a849c08 Fixes #2026. Added ClearOnVisibleFalse to flag if the view must be cleared or not. (#2020)
* Fixes #1984. Added ClearOnVisibleFalse to flag if the view must be cleared or not.

* Fixes #2022. ScrollBarView doesn't show the down arrow on vertical if there isn't horizontal.
2022-09-16 09:16:44 -07:00
BDisp
0f9abea9e4 Fixes #2017. Sometimes I get fails with the TestAddManyTimeouts unit test. (#2018)
* Fixes #2017. Sometimes I get fails with the TestAddManyTimeouts unit test.

* Fixes #2013. Starting having MainLoopTests.InvokeLeakTest failure.
2022-09-16 07:09:41 -07:00
BDisp
7ce2109a46 Fixes #2013. Starting having MainLoopTests.InvokeLeakTest failure. (#2016) 2022-09-16 06:05:10 -07:00
BDisp
28718e9c3c Fixes #2002. Added feature to fill the remaining width with spaces. (#2003)
* Added feature to fill the remaining width with spaces.

* Removing unnecessary parameter.

* Fixes a typo.

* Unit test rewritten to explain better main feature of this PR.

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-09-15 06:47:12 -07:00
BDisp
d70966a29c Fixes the justified text not adding the extra spaces. (#2005)
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-09-14 19:18:41 -07:00
montekarlos
1cdf6a1b45 Fixes #1994. BREAKING CHANGE. Ensure only a single IdleHandlers list can exist. (#1997)
* Add unit test that demonstrates the loss of idle handlers added via Application.MainLoop.Invoke

* Fixes #1994. Ensure that only a single idle handlers list exists at one time

* Previous implementation locked on idleHandlers but this is dangerous because it is reallocated. It was therefore possible for two different threads to hold locks on two different instances of idleHandlers simultaneously. The idle handlers added to the older instance of idleHandlers would then be lost. This was particularity catastrophic when combined with async/await continuations being lost.

* Add dedicated lock object idleHandlersLock and use when modifying idleHandlers

* Fix additional bug in RemoveIdle that was locking the token instead of idleHandlers

* Return a copy via the IdleHandlers property as it was directly returning idleHandlers. This cannot safely be done without first acquiring idleHandlersLock

* Address code review feedback for #1994: Make IdleHandler immutable via ReadOnlyCollection

* Address code review feedback for #1994: Avoid the possibility of IdleHandlers changing while being used

Co-authored-by: Karl Janke <karl.janke@groundprobe.com>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-09-14 18:26:19 -07:00
BDisp
75c0160d96 Fixes #1999. Prevents the mouseGrabView being executed with a null view. (#2000)
* Unit test that will fail without the fix.

* ScrollView must return true after ungrab the mouse to allow the View property run after returned.

* Fixes #1999. Prevents the mouseGrabView being executed with a null view.

* Added one more assert null check.
2022-09-14 18:18:00 -07:00
dependabot[bot]
c983c2e65a Bump ReportGenerator from 5.1.9 to 5.1.10 (#1996)
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.1.9 to 5.1.10.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.1.9...v5.1.10)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-14 18:11:23 -07:00
BDisp
ff1eb9bea1 Fixes #1979. MessageBox.Query not wrapping since 1.7.1 (#1995)
* Added MaxWidthLine into the TextFormatter class.

* Some more test line to better verifying the mainloop idle handlers.

* Fixes #1979. MessageBox.Query not wrapping since 1.7.1

* Added MessageBox unit tests.

* States a button centered issue on a lower fixed size.

* Fixed the centered button issue 4d0a4b6.
2022-09-14 18:11:12 -07:00
BDisp
b21f203292 Fixes #820. Added HideDropdownListOnClick property. (#1983)
* Added HideDropdownListOnClick property.

* Invoking OpenSelectedItem on click.

* Added one more constructor and more unit tests.

* Added the ComboListView derived class.

* Added more features to ComboBox.

* Removes code not featured yet.

* Added HideDropdownListOnClick property to scenario.

* Ensures SetSource having the same behavior as the ListWrapper constructor.
2022-09-14 18:10:40 -07:00
BDisp
d368215e07 Fixes #1987. Textview insert text newline fix (#1988)
* Fixes #1987. TextView InsertText does not respect newlines

* Added support for CRLF as well.
2022-09-05 12:49:39 -07:00
BDisp
3866e65919 Fixes #1989. ListView: Ensures SelectedItem visibility on MoveDown and MoveUp. (#1990)
* Ensures visibility SelectedItem on MoveDown and MoveUp.

* Fix VisibleItems to Frame.Height.
2022-09-05 07:25:57 -07:00