chromium/third_party/blink/renderer/core/page/scrolling/snap_coordinator_test.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/page/scrolling/snap_coordinator.h"

#include <gtest/gtest.h>

#include <memory>

#include "cc/input/scroll_snap_data.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-shared.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/layout/layout_box.h"
#include "third_party/blink/renderer/core/layout/layout_view.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/paint/paint_layer_scrollable_area.h"
#include "third_party/blink/renderer/core/scroll/scroll_types.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/core/testing/scoped_mock_overlay_scrollbars.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

namespace blink {

kStyleAttr;

class SnapCoordinatorTest : public testing::Test,
                            public ScopedMockOverlayScrollbars {};

TEST_F(SnapCoordinatorTest, SimpleSnapElement) {}

TEST_F(SnapCoordinatorTest, NestedSnapElement) {}

TEST_F(SnapCoordinatorTest, ModifySnapElement) {}

TEST_F(SnapCoordinatorTest, NestedSnapElementCaptured) {}

TEST_F(SnapCoordinatorTest, PositionFixedSnapElement) {}

TEST_F(SnapCoordinatorTest, UpdateStyleForSnapElement) {}

TEST_F(SnapCoordinatorTest, ViewportScrollSnapStyleComesFromDocumentElement) {}

TEST_F(SnapCoordinatorTest, LayoutViewCapturesWhenBodyElementViewportDefining) {}

TEST_F(SnapCoordinatorTest,
       LayoutViewCapturesWhenDocumentElementViewportDefining) {}

TEST_F(SnapCoordinatorTest,
       BodyCapturesWhenBodyOverflowAndDocumentElementViewportDefining) {}

#define EXPECT_EQ_CONTAINER(expected, actual)

#define EXPECT_EQ_AREA(expected, actual)

// The following tests check the SnapContainerData and SnapAreaData are
// correctly calculated.
TEST_F(SnapCoordinatorTest, SnapDataCalculation) {}

TEST_F(SnapCoordinatorTest, ScrolledSnapDataCalculation) {}

TEST_F(SnapCoordinatorTest, ScrolledSnapDataCalculationOnViewport) {}

TEST_F(SnapCoordinatorTest, SnapDataCalculationWithBoxModel) {}

TEST_F(SnapCoordinatorTest, NegativeMarginSnapDataCalculation) {}

TEST_F(SnapCoordinatorTest, AsymmetricalSnapDataCalculation) {}

TEST_F(SnapCoordinatorTest, ScaledSnapDataCalculation) {}

TEST_F(SnapCoordinatorTest, VerticalRlSnapDataCalculation) {}

TEST_F(SnapCoordinatorTest, ChangeOverflowToVisible) {}

TEST_F(SnapCoordinatorTest, CurrentSnappedAreaRemoved) {}

TEST_F(SnapCoordinatorTest, AddingSnapAreaDoesNotRemoveCurrentSnapTarget) {}

TEST_F(SnapCoordinatorTest, NegativeOverflowWithExpandedViewport) {}

TEST_F(SnapCoordinatorTest, UseCounterNestedSnap) {}

TEST_F(SnapCoordinatorTest, UseCounterCoveringSnapArea) {}

}  // namespace blink