#include "third_party/blink/renderer/core/layout/block_layout_algorithm.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/renderer/core/dom/dom_token_list.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/dom/tag_collection.h"
#include "third_party/blink/renderer/core/layout/base_layout_algorithm_test.h"
#include "third_party/blink/renderer/core/layout/block_break_token.h"
#include "third_party/blink/renderer/core/layout/block_node.h"
#include "third_party/blink/renderer/core/layout/constraint_space.h"
#include "third_party/blink/renderer/core/layout/constraint_space_builder.h"
#include "third_party/blink/renderer/core/layout/layout_block_flow.h"
#include "third_party/blink/renderer/core/layout/layout_result.h"
#include "third_party/blink/renderer/core/layout/length_utils.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/layout/physical_fragment.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
namespace blink {
namespace {
ElementsAre;
Pointee;
class BlockLayoutAlgorithmTest : public BaseLayoutAlgorithmTest { … };
TEST_F(BlockLayoutAlgorithmTest, FixedSize) { … }
TEST_F(BlockLayoutAlgorithmTest, Caching) { … }
TEST_F(BlockLayoutAlgorithmTest, MinInlineSizeCaching) { … }
TEST_F(BlockLayoutAlgorithmTest, PercentageBlockSizeQuirkDescendantsCaching) { … }
TEST_F(BlockLayoutAlgorithmTest, LineOffsetCaching) { … }
TEST_F(BlockLayoutAlgorithmTest, LayoutBlockChildren) { … }
TEST_F(BlockLayoutAlgorithmTest, LayoutBlockChildrenWithWritingMode) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsCase1WithFloats) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsCase2WithFloats) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsCase3) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsCase4) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsCase5) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsWithText) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsCase6) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsCase7) { … }
TEST_F(BlockLayoutAlgorithmTest, CollapsingMarginsEmptyBlockWithClearance) { … }
TEST_F(BlockLayoutAlgorithmTest, NewFormattingContextAutoMargins) { … }
TEST_F(BlockLayoutAlgorithmTest, BorderAndPadding) { … }
TEST_F(BlockLayoutAlgorithmTest, PercentageResolutionSize) { … }
TEST_F(BlockLayoutAlgorithmTest, AutoMargin) { … }
TEST_F(BlockLayoutAlgorithmTest, PositionFloatInsideEmptyBlocks) { … }
TEST_F(BlockLayoutAlgorithmTest, PositionFloatFragments) { … }
TEST_F(BlockLayoutAlgorithmTest, PositionFragmentsWithClear) { … }
TEST_F(BlockLayoutAlgorithmTest, ComputeMinMaxContent) { … }
TEST_F(BlockLayoutAlgorithmTest, ComputeMinMaxContentFloats) { … }
TEST_F(BlockLayoutAlgorithmTest, ComputeMinMaxContentFloatsClearance) { … }
TEST_F(BlockLayoutAlgorithmTest, ComputeMinMaxContentNewFormattingContext) { … }
TEST_F(BlockLayoutAlgorithmTest,
ComputeMinMaxContentNewFormattingContextNegativeMargins) { … }
TEST_F(BlockLayoutAlgorithmTest,
ComputeMinMaxContentSingleNewFormattingContextNegativeMargins) { … }
TEST_F(BlockLayoutAlgorithmTest, ShrinkToFit) { … }
TEST_F(BlockLayoutAlgorithmTest, PositionEmptyBlocksInNewBfc) { … }
TEST_F(BlockLayoutAlgorithmTest,
PositionBlocksWithClearanceAndIntrudingFloats) { … }
TEST_F(BlockLayoutAlgorithmTest, NoFragmentation) { … }
TEST_F(BlockLayoutAlgorithmTest, SimpleFragmentation) { … }
TEST_F(BlockLayoutAlgorithmTest, InnerChildrenFragmentation) { … }
TEST_F(BlockLayoutAlgorithmTest, InnerFormattingContextChildrenFragmentation) { … }
TEST_F(BlockLayoutAlgorithmTest, InnerChildrenFragmentationSmallHeight) { … }
TEST_F(BlockLayoutAlgorithmTest, DISABLED_FloatFragmentationParallelFlows) { … }
TEST_F(BlockLayoutAlgorithmTest, FloatFragmentationOrthogonalFlows) { … }
TEST_F(BlockLayoutAlgorithmTest, DISABLED_FloatFragmentationZeroHeight) { … }
TEST_F(BlockLayoutAlgorithmTest, NewFcBlockWithAdjoiningFloatCollapsesMargins) { … }
TEST_F(BlockLayoutAlgorithmTest, NewFcAvoidsFloats) { … }
TEST_F(BlockLayoutAlgorithmTest, ZeroBlockSizeAboveEdge) { … }
TEST_F(BlockLayoutAlgorithmTest, NewFcFirstChildIsZeroBlockSize) { … }
TEST_F(BlockLayoutAlgorithmTest, RootFragmentOffsetInsideLegacy) { … }
TEST_F(BlockLayoutAlgorithmTest, LayoutRubyTextCrash) { … }
TEST_F(BlockLayoutAlgorithmTest, HandleTextControlPlaceholderCrash) { … }
}
}