• 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
..
accessibility.dart Loading commit data...
all_elements.dart Loading commit data...
binding.dart Loading commit data...
controller.dart Loading commit data...
finders.dart Loading commit data...
goldens.dart Loading commit data...
matchers.dart Loading commit data...
nonconst.dart Loading commit data...
platform.dart Loading commit data...
stack_manipulation.dart Loading commit data...
test_async_utils.dart Loading commit data...
test_compat.dart Loading commit data...
test_exception_reporter.dart Loading commit data...
test_pointer.dart Loading commit data...
test_text_input.dart Loading commit data...
test_vsync.dart Loading commit data...
widget_tester.dart Loading commit data...
window.dart Loading commit data...