• Ian Hickson's avatar
    Make tests more realistic (#5762) · 5bc8888e
    Ian Hickson authored
    Previously, pumpWidget() would do a partial pump (it didn't trigger
    Ticker callbacks or post-frame callbacks), and pump() would do a full
    pump. This patch brings them closer together. It also makes runApp run a
    full actual frame, rather than skipping the transient callback part of
    the frame logic. Having "half-frames" in the system was confusing and
    could lead to bugs where code expecting to run before the next layout
    pass didn't because a "half-frame" ran first.
    
    Also, make Tickers start ticking in the frame that they were started in,
    if they were started during a frame. This means we no longer spin a
    frame for t=0, we jump straight to the first actual frame.
    
    Other changes in this patch:
    
    * rename WidgetsBinding._runApp to WidgetsBinding.attachRootWidget, so
      that tests can use it to more accurately mock out runApp.
    
    * allow loadStructuredData to return synchronously.
    
    * make handleBeginFrame handle not being given a time stamp.
    
    * make DataPipeImageProvider.loadAsync protected (rather than private),
      and document it. There wasn't really a reason for it to be private.
    
    * fix ImageConfiguration.toString.
    
    * introduce debugPrintBuildScope and debugPrintScheduleBuildForStacks,
      which can help debug problems with widgets getting marked as dirty but
      not cleaned.
    
    * make debugPrintRebuildDirtyWidgets say "Building" the first time and
      "Rebuilding" the second, to make it clearer when a widget is first
      created. This makes debugging widget lifecycle issues much easier.
    
    * make debugDumpApp more resilient.
    
    * debugPrintStack now takes a label that is printed before the stack.
    
    * improve the banner shown for debugPrintBeginFrameBanner.
    
    * various and sundry documentation fixes
    5bc8888e
Name
Last commit
Last update
..
align_test.dart Loading commit data...
animated_container_test.dart Loading commit data...
animated_cross_fade_test.dart Loading commit data...
animated_positioned_test.dart Loading commit data...
animated_size_test.dart Loading commit data...
aspect_ratio_test.dart Loading commit data...
banner_test.dart Loading commit data...
block_test.dart Loading commit data...
bottom_sheet_rebuild_test.dart Loading commit data...
bottom_sheet_test.dart Loading commit data...
box_decoration_test.dart Loading commit data...
build_scope_test.dart Loading commit data...
buttons_test.dart Loading commit data...
center_test.dart Loading commit data...
clip_test.dart Loading commit data...
column_test.dart Loading commit data...
coordinates_test.dart Loading commit data...
custom_multi_child_layout_test.dart Loading commit data...
custom_one_child_layout_test.dart Loading commit data...
custom_paint_test.dart Loading commit data...
date_picker_test_disabled.dart Loading commit data...
dismissable_test.dart Loading commit data...
draggable_test.dart Loading commit data...
drawer_test.dart Loading commit data...
duplicate_key_test.dart Loading commit data...
flex_test.dart Loading commit data...
flow_test.dart Loading commit data...
focus_test.dart Loading commit data...
form_test.dart Loading commit data...
fractionally_sized_box_test.dart Loading commit data...
gesture_detector_test.dart Loading commit data...
grid_paper_test.dart Loading commit data...
heroes_test.dart Loading commit data...
hit_testing_test.dart Loading commit data...
hyperlink_test.dart Loading commit data...
icon_test.dart Loading commit data...
image_resolution_test.dart Loading commit data...
image_test.dart Loading commit data...
implicit_animations_test.dart Loading commit data...
independent_widget_layout_test.dart Loading commit data...
inherited_test.dart Loading commit data...
init_state_test.dart Loading commit data...
input_test.dart Loading commit data...
layout_builder_and_parent_data_test.dart Loading commit data...
layout_builder_and_state_test.dart Loading commit data...
layout_builder_mutations_test.dart Loading commit data...
layout_builder_test.dart Loading commit data...
lazy_block_fling_test.dart Loading commit data...
lazy_block_test.dart Loading commit data...
lazy_block_viewport_test.dart Loading commit data...
listener_test.dart Loading commit data...
media_query_test.dart Loading commit data...
modal_barrier_test.dart Loading commit data...
multichild_test.dart Loading commit data...
navigator_test.dart Loading commit data...
overflow_box_test.dart Loading commit data...
page_forward_transitions_test.dart Loading commit data...
page_storage_test.dart Loading commit data...
page_transitions_test.dart Loading commit data...
pageable_list_test.dart Loading commit data...
parent_data_test.dart Loading commit data...
positioned_test.dart Loading commit data...
raw_keyboard_listener_test.dart Loading commit data...
remember_scroll_position_test.dart Loading commit data...
render_object_widget_test.dart Loading commit data...
reparent_state_harder_test.dart Loading commit data...
reparent_state_test.dart Loading commit data...
rotated_box_test.dart Loading commit data...
routes_test.dart Loading commit data...
row_test.dart Loading commit data...
run_app_test.dart Loading commit data...
scroll_behavior_test.dart Loading commit data...
scroll_events_test.dart Loading commit data...
scroll_interaction_test.dart Loading commit data...
scroll_notification_test.dart Loading commit data...
scrollable_dispose_test.dart Loading commit data...
scrollable_fling_test.dart Loading commit data...
scrollable_lazy_list_test.dart Loading commit data...
scrollable_list_hit_testing_test.dart Loading commit data...
scrollable_list_horizontal_test.dart Loading commit data...
scrollable_list_vertical_test.dart Loading commit data...
scrollable_list_with_inherited_test.dart Loading commit data...
semantics_1_test.dart Loading commit data...
semantics_2_test.dart Loading commit data...
semantics_3_test.dart Loading commit data...
semantics_4_test.dart Loading commit data...
semantics_5_test.dart Loading commit data...
semantics_7_test.dart Loading commit data...
semantics_8_test.dart Loading commit data...
semantics_debugger_test.dart Loading commit data...
semantics_test.dart Loading commit data...
set_state_1_test.dart Loading commit data...
set_state_2_test.dart Loading commit data...
set_state_3_test.dart Loading commit data...
set_state_4_test.dart Loading commit data...
shader_mask_test.dart Loading commit data...
size_changed_layout_notification_test.dart Loading commit data...
snap_scrolling_test.dart Loading commit data...
stack_test.dart Loading commit data...
state_setting_in_scrollables_test.dart Loading commit data...
stateful_component_test.dart Loading commit data...
stateful_components_test.dart Loading commit data...
syncing_test.dart Loading commit data...
table_test.dart Loading commit data...
test_widgets.dart Loading commit data...
transform_test.dart Loading commit data...