Skip to content

Conversation

@srawlins
Copy link
Contributor

Fixes #15849.

In Dart 2 semantics (so far...) Mock objects cannot have their methods torn off as a part of mocking.

Related to dart-lang/mockito#107.

@srawlins
Copy link
Contributor Author

CC @xster

@srawlins
Copy link
Contributor Author

CC @aam

@xster
Copy link
Member

xster commented Mar 23, 2018

LG!
Thanks!

@srawlins
Copy link
Contributor Author

Learning things. This PR breaks compatibility with Dart 1 mode. Working on a fix that works in both modes.

@xster
Copy link
Member

xster commented Mar 23, 2018

Still LG. Thanks for figuring it out!

@srawlins
Copy link
Contributor Author

Green Travis. Go for it!

@srawlins
Copy link
Contributor Author

Someone with write access should totally merge this PR 😁 😁 😁

@aam
Copy link
Member

aam commented Mar 23, 2018

Didn't realize you can't submit it, @srawlins .
AppVeyor was red so I restarted it, hopefully by the time it finishes, the tree turns green too.

@aam
Copy link
Member

aam commented Mar 23, 2018

AppVeyor completed, ready to be submitted as soon as flutter-build turns green.

@a-siva
Copy link
Contributor

a-siva commented Mar 24, 2018

Can we submit this PR.

@aam
Copy link
Member

aam commented Mar 24, 2018 via email

@a-siva a-siva merged commit 2eebf6a into flutter:master Mar 24, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
* Remove tear-off mocking in refresh_test

* Comments

* Analyzer fix

* Final final final final mushroom mushroom!

* Fix for Dart 1 AND Dart 2 semantics; anonymous closure over tear-off

* Final final
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flutter test fails on latest engine (https://github.com/flutter/flutter/pull/15847)

5 participants