Instrument pending timers in tests (#37646)
Flutter widget tests assert if a test completes with timers still pending. However, it can be hard to diagnose where a pending timer came from. For example, a widget might consume a third-party library that internally uses a timer. I added a FakeAsync.pendingTimersDebugInfo getter to quiver (https://github.com/google/quiver-dart/pull/500). Make flutter_test use it. Additionally modify Flutter's debugPrintStack to take an optional StackTrace argument instead of always printing StackTrace.current. Fixes #4237.
J
James D. Lin committed
b2f8d3a6689816e6f03f0f7ae05f463e9920ed97
Parent: 9da68fc
Committed by GitHub <noreply@github.com>
on 8/20/2019, 5:28:49 PM