chromium/third_party/blink/renderer/core/page/spatial_navigation_test.cc

// Copyright 2017 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/spatial_navigation.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/input/web_keyboard_event.h"
#include "third_party/blink/renderer/core/frame/frame_test_helpers.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/frame/web_remote_frame_impl.h"
#include "third_party/blink/renderer/core/html/forms/html_select_element.h"
#include "third_party/blink/renderer/core/input/event_handler.h"
#include "third_party/blink/renderer/core/page/spatial_navigation_controller.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
#include "ui/events/keycodes/dom/dom_key.h"

namespace blink {

class SpatialNavigationTest : public RenderingTest {};

TEST_F(SpatialNavigationTest, RootFramesVisualViewport) {}

TEST_F(SpatialNavigationTest, FindContainerWhenEnclosingContainerIsDocument) {}

TEST_F(SpatialNavigationTest, FindContainerWhenEnclosingContainerIsIframe) {}

TEST_F(SpatialNavigationTest,
       FindContainerWhenEnclosingContainerIsScrollableOverflowBox) {}

TEST_F(SpatialNavigationTest, ZooomPutsElementOffScreen) {}

TEST_F(SpatialNavigationTest, RootViewportRespectsVisibleSize) {}

TEST_F(SpatialNavigationTest, StartAtVisibleFocusedElement) {}

TEST_F(SpatialNavigationTest, StartAtVisibleFocusedScroller) {}

TEST_F(SpatialNavigationTest, StartAtVisibleFocusedIframe) {}

TEST_F(SpatialNavigationTest, StartAtTopWhenGoingDownwardsWithoutFocus) {}

TEST_F(SpatialNavigationTest, StartAtBottomWhenGoingUpwardsWithoutFocus) {}

TEST_F(SpatialNavigationTest, StartAtLeftSideWhenGoingEastWithoutFocus) {}

TEST_F(SpatialNavigationTest, StartAtRightSideWhenGoingWestWithoutFocus) {}

TEST_F(SpatialNavigationTest,
       StartAtBottomWhenGoingUpwardsAndFocusIsOffscreen) {}

TEST_F(SpatialNavigationTest, StartAtContainersEdge) {}

TEST_F(SpatialNavigationTest,
       StartFromDocEdgeWhenFocusIsClippedInOffscreenScroller) {}

TEST_F(SpatialNavigationTest,
       StartFromDocEdgeWhenFocusIsClippedInNestedOffscreenScroller) {}

TEST_F(SpatialNavigationTest, PartiallyVisible) {}

TEST_F(SpatialNavigationTest,
       StartFromDocEdgeWhenOffscreenIframeDisplaysFocus) {}

TEST_F(SpatialNavigationTest, DivsCanClipIframes) {}

TEST_F(SpatialNavigationTest, PartiallyVisibleIFrame) {}

TEST_F(SpatialNavigationTest, BottomOfPinchedViewport) {}

TEST_F(SpatialNavigationTest, StraightTextNoFragments) {}

TEST_F(SpatialNavigationTest, LineBrokenTextHasFragments) {}

TEST_F(SpatialNavigationTest, ManyClientRectsButNotLineBrokenText) {}

TEST_F(SpatialNavigationTest, UseTheFirstFragment) {}

TEST_F(SpatialNavigationTest, InlineImageLink) {}

TEST_F(SpatialNavigationTest, InlineImageLinkWithLineHeight) {}

TEST_F(SpatialNavigationTest, InlineImageTextLinkWithLineHeight) {}

TEST_F(SpatialNavigationTest, InlineLinkWithInnerBlock) {}

TEST_F(SpatialNavigationTest, NoOverlappingLinks) {}

TEST_F(SpatialNavigationTest, OverlappingLinks) {}

TEST_F(SpatialNavigationTest, UseInlineBoxHeightWhenShorter) {}

TEST_F(SpatialNavigationTest, LineBrokenLink) {}

TEST_F(SpatialNavigationTest, NormalizedLineBrokenLink) {}

TEST_F(SpatialNavigationTest, NormalizedLineBrokenLinkWithImg) {}

TEST_F(SpatialNavigationTest, PaddedInlineLinkOverlapping) {}

TEST_F(SpatialNavigationTest, PaddedInlineBlockLinkOverlapping) {}

TEST_F(SpatialNavigationTest, BoxWithLineHeight) {}

TEST_F(SpatialNavigationTest, ReplacedInlineElement) {}

TEST_F(SpatialNavigationTest, VerticalText) {}

TEST_F(SpatialNavigationTest, TopOfPinchedViewport) {}

TEST_F(SpatialNavigationTest, HasRemoteFrame) {}

TEST_F(SpatialNavigationTest, PressEnterKeyActiveElement) {}

}  // namespace blink