• 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
..
README.md Loading commit data...
crash1_test.dart Loading commit data...
crash2_test.dart Loading commit data...
disallow_error_reporter_modification_test.dart Loading commit data...
fail_test.dart Loading commit data...
missing_import_test.broken_dart Loading commit data...
pass_test.dart Loading commit data...
pending_timer_fail_test.dart Loading commit data...
syntax_error_test.broken_dart Loading commit data...
timeout_fail_test.dart Loading commit data...
timeout_pass_test.dart Loading commit data...