Skip to content

Conversation

@mbien
Copy link
Member

@mbien mbien commented Apr 30, 2025

lets see if this works

@mbien mbien added the ci:all-tests [ci] enable all tests label Apr 30, 2025
@mbien mbien added this to the NB26 milestone Apr 30, 2025
 - the editor uses NBClipboard now which works asynchronously
 - ClipboardHandlerTest expects copy/paste to be blocking operations
 - lets sync after copy/paste operations
@ebarboni
Copy link
Contributor

looks green :D

private static void syncNbClipboard() {
NbClipboard nbclip = Lookup.getDefault().lookup(NbClipboard.class);
assertNotNull("active NbClipboard expected", nbclip);
try {
Copy link
Member

@neilcsmith-net neilcsmith-net Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling getContents() might be better here? It should roughly match what was happening before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocking on the tasks is the most-direct way to sync on the clipboard. The method is also used from another test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So is getContents. I don't think we should change this test, and if we do I think it should use the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:all-tests [ci] enable all tests Editor Platform [ci] enable platform tests (platform/*)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants