Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

nturgut
Copy link
Contributor

@nturgut nturgut commented Apr 7, 2020

remove the fake reply for paste message. the clipboard.dart will reply with the content of the clipboard

Fixes flutter/flutter#53983

Note: This feature is not tested so it breaks with other changes. I'll send an integration tests after merging this PR in to protect the feature towards future changes.

(I'm not sending it now, cause I still need to find a way of giving driver clipboard permission :) or another workaround to test the clipboard.dart code)

@nturgut nturgut requested review from ferhatb and yjbanov April 7, 2020 01:31
Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

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

LGTM modulo @mdebbar's comment. Can this be covered by a unit-test or does it require an integration test?

@nturgut
Copy link
Contributor Author

nturgut commented Apr 7, 2020

LGTM modulo @mdebbar's comment. Can this be covered by a unit-test or does it require an integration test?

We can't write a unit test.

We can maybe write an integration test (the reason I say may be is we need to approve the permission pop-up somehow). I am looking to the possibility. At worst scenario though, we can write an integration test that uses one of the branches (exec-command branch)

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

LGTM

@nturgut
Copy link
Contributor Author

nturgut commented Apr 7, 2020

Merging the PR since it is not related to Windows Host.

We will merge the tests later. Looks like @ferhatb has a test.

@nturgut nturgut merged commit 394ac6b into flutter:master Apr 7, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 7, 2020
goderbauer pushed a commit to goderbauer/engine that referenced this pull request Apr 16, 2020
* remove the fake reply for paste message. the clipboard.dart will reply with the content of the clipboard

* also remove the fake answer for copy
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clipboard.getData() is broken for web after v1.16.2

5 participants