chromium/third_party/blink/renderer/core/layout/anchor_position_scroll_data_test.cc

// Copyright 2022 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/layout/anchor_position_scroll_data.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/animation/animation_clock.h"
#include "third_party/blink/renderer/core/dom/dom_token_list.h"
#include "third_party/blink/renderer/core/page/page_animator.h"
#include "third_party/blink/renderer/core/paint/paint_layer_scrollable_area.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"

namespace blink {

class AnchorPositionScrollDataTest : public RenderingTest {};

TEST_F(AnchorPositionScrollDataTest, HasDataAndScrollAdjustment) {}

// Tests that AnchorPositionScrollData should be properly detached if an element
// changes from anchor-positioned to no longer anchor-positioned
TEST_F(AnchorPositionScrollDataTest, Detach) {}

// Verifies that a new frame is scheduled if a style update changes the size of
// a scroller, which in turn changes the scroll offset.
TEST_F(AnchorPositionScrollDataTest, ScrollerSizeChange) {}

// Verifies that a new frame is scheduled if a style update changes the size of
// the content of a scroller, which in turn changes the scroll offset.
TEST_F(AnchorPositionScrollDataTest, ScrollContentSizeChange) {}

}  // namespace blink