Skip to content

test: enable working tests and add ItemsRepeater fixes for RepeaterTests - #13074

Merged
MartinZikmund merged 3 commits into
unoplatform:masterfrom
ramezgerges:repeater_tests_cleanup
Aug 4, 2023
Merged

MartinZikmund merged 3 commits into
unoplatform:masterfrom
ramezgerges:repeater_tests_cleanup

Conversation

@ramezgerges

@ramezgerges ramezgerges commented Aug 1, 2023 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #9080

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

Copilot Summary

🤖 Generated by Copilot at 0a196f9

Enable and fix ItemsRepeater tests on different platforms. Adjust test setup and cleanup for VerifyCurrentAnchor in RepeaterTests.cs.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@ramezgerges

ramezgerges commented Aug 1, 2023 •

Copy link
Copy Markdown
Contributor Author

Most tests work out of the box, but the problem is that IdleSynchronizer either does nothing or causes a deadlock. Replacing IdleSynchronizer.Wait() with await TestServices.WindowHelper.WaitForIdle() passes most tests, but that comes at the cost of changing winui-ported code, so I'm looking for a better solution. Basically, IdleSynchronizer needs to wait without blocking the UI thread, which only seems to work with await

Edit: There was an erroneous "RunsOnUIThread" on the TestClass. Things should work now.

@ramezgerges
ramezgerges force-pushed the repeater_tests_cleanup branch from 1da3453 to 5692b63 Compare August 3, 2023 07:43
@ramezgerges
ramezgerges marked this pull request as ready for review August 4, 2023 08:19
@MartinZikmund
MartinZikmund merged commit 41287b7 into unoplatform:master Aug 4, 2023
@ramezgerges
ramezgerges deleted the repeater_tests_cleanup branch August 4, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants