• Hixie's avatar
    Improve exceptions and asserts for rendering lib. · 1a0484cc
    Hixie authored
    * Use actual exceptions rather than assertions containing code
      containing strings when trying to give messages to authors.
    * Introduce RenderingError which is an AssertionError that takes a
      string argument, to support the above.
    * Provide a BoxDimensions.hasBoundedWidth/hasBoundedHeight API.
    * Document BoxDimensions.isNormalized.
    * Provide more useful information when we assert isNormalized and find
      that it is false.
    * When finding the size is infinite, crawl the tree to figure out which
      render box is likely responsible for the infinite constraints.
    * Provide more information when size doesn't match the constraints.
    * Provide more information when intrinsic dimension methods violate the
      constraints.
    * Only spam a huge amount of information for the first exception from
      the rendering library. I've noticed a lot of people looking at the
      last exception printed rather than the first and that's very
      misleading -- after the rendering library hits an exception, all bets
      are off regarding what'll happen in the future. All kinds of asserts
      might fire.
    * Improve docs around the debug methods and flags for the above.
    * Make Block default to have no children. Previously, giving no children
      crashed with a confusing message about a null deref in an assert.
    1a0484cc
Name
Last commit
Last update
..
align_test.dart Loading commit data...
animated_container_test.dart Loading commit data...
animated_positioned_test.dart Loading commit data...
block_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...
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.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...
focus_test.dart Loading commit data...
fractionally_sized_box_test.dart Loading commit data...
gesture_detector_test.dart Loading commit data...
heroes_test.dart Loading commit data...
homogeneous_viewport_test.dart Loading commit data...
init_state_test.dart Loading commit data...
input_test.dart Loading commit data...
listener_test.dart Loading commit data...
mixed_viewport_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_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...
progress_indicator_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_test.dart Loading commit data...
routes_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_6_test.dart Loading commit data...
set_state_2_test.dart Loading commit data...
set_state_3_test.dart Loading commit data...
set_state_test.dart Loading commit data...
shader_mask_test.dart Loading commit data...
size_observer_test.dart Loading commit data...
snack_bar_test.dart Loading commit data...
snap_scrolling_test.dart Loading commit data...
stack_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...
tabs_test.dart Loading commit data...
test_matchers.dart Loading commit data...
test_semantics.dart Loading commit data...
test_widgets.dart Loading commit data...
tooltip_test.dart Loading commit data...
transform_test.dart Loading commit data...
two_level_list_test.dart Loading commit data...