#include "cc/base/features.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/input/event_handler.h"
#include "third_party/blink/renderer/core/input/scroll_manager.h"
#include "third_party/blink/renderer/core/layout/layout_box.h"
#include "third_party/blink/renderer/core/paint/paint_layer_scrollable_area.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/sim/sim_compositor.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
namespace blink {
class ScrollSnapTest : public SimTest { … };
void ScrollSnapTest::SetUpForDiv() { … }
void ScrollSnapTest::GestureScroll(double x,
double y,
double delta_x,
double delta_y,
bool composited) { … }
void ScrollSnapTest::ScrollBegin(double x,
double y,
double hint_x,
double hint_y) { … }
void ScrollSnapTest::ScrollUpdate(double x,
double y,
double delta_x,
double delta_y,
bool is_in_inertial_phase) { … }
void ScrollSnapTest::ScrollEnd(double x, double y, bool is_in_inertial_phase) { … }
void ScrollSnapTest::SetInitialScrollOffset(double x, double y) { … }
TEST_F(ScrollSnapTest, ScrollSnapOnX) { … }
TEST_F(ScrollSnapTest, ScrollSnapOnY) { … }
TEST_F(ScrollSnapTest, ScrollSnapOnBoth) { … }
TEST_F(ScrollSnapTest, AnimateFlingToArriveAtSnapPoint) { … }
TEST_F(ScrollSnapTest, SnapWhenBodyViewportDefining) { … }
TEST_F(ScrollSnapTest, SnapWhenHtmlViewportDefining) { … }
TEST_F(ScrollSnapTest, SnapWhenBodyOverflowHtmlViewportDefining) { … }
TEST_F(ScrollSnapTest, ResizeDuringGesture) { … }
}