• James D. Lin's avatar
    Instrument pending timers in tests (#37646) · b2f8d3a6
    James D. Lin authored
    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.
    b2f8d3a6
Name
Last commit
Last update
..
test Loading commit data...
README.md Loading commit data...
analyze-sample-code.dart Loading commit data...
analyze.dart Loading commit data...
cirrus_setup.sh Loading commit data...
codelabs_build_test.sh Loading commit data...
deploy_gallery.sh Loading commit data...
docs.sh Loading commit data...
download_android_sdk.sh Loading commit data...
download_goldctl.ps1 Loading commit data...
download_goldctl.sh Loading commit data...
download_open_jdk.sh Loading commit data...
firebase_testlab.sh Loading commit data...
flutter_compact_formatter.dart Loading commit data...
prepare_package.dart Loading commit data...
pubspec.yaml Loading commit data...
run_command.dart Loading commit data...
serviceaccount.enc Loading commit data...
test.dart Loading commit data...
unpublish_package.dart Loading commit data...