chromium/third_party/blink/renderer/core/dom/range_test.cc

// Copyright 2014 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/dom/range.h"

#include "base/memory/scoped_refptr.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_font_face_descriptors.h"
#include "third_party/blink/renderer/core/css/font_face_set_document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/node_list.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/frame_selection.h"
#include "third_party/blink/renderer/core/editing/selection_template.h"
#include "third_party/blink/renderer/core/editing/testing/editing_test_base.h"
#include "third_party/blink/renderer/core/editing/visible_units.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/html/forms/html_text_area_element.h"
#include "third_party/blink/renderer/core/html/html_body_element.h"
#include "third_party/blink/renderer/core/html/html_div_element.h"
#include "third_party/blink/renderer/core/html/html_document.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html/html_html_element.h"
#include "third_party/blink/renderer/core/testing/null_execution_context.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string.h"
#include "ui/gfx/geometry/quad_f.h"
#include "ui/gfx/geometry/rect_conversions.h"

namespace blink {

ElementsAre;

class RangeTest : public EditingTestBase {};

TEST_F(RangeTest, extractContentsWithDOMMutationEvent) {}

// http://crbug.com/822510
TEST_F(RangeTest, IntersectsNode) {}

TEST_F(RangeTest, SplitTextNodeRangeWithinText) {}

TEST_F(RangeTest, SplitTextNodeRangeOutsideText) {}

TEST_F(RangeTest, updateOwnerDocumentIfNeeded) {}

// Regression test for crbug.com/639184
TEST_F(RangeTest, NotMarkedValidByIrrelevantTextInsert) {}

// Regression test for crbug.com/639184
TEST_F(RangeTest, NotMarkedValidByIrrelevantTextRemove) {}

// Regression test for crbug.com/698123
TEST_F(RangeTest, ExpandNotCrash) {}

TEST_F(RangeTest, ToPosition) {}

TEST_F(RangeTest, BoundingRectMustIndependentFromSelection) {}

// Regression test for crbug.com/681536
TEST_F(RangeTest, BorderAndTextQuadsWithInputInBetween) {}

static Vector<gfx::QuadF> GetBorderAndTextQuads(const Position& start,
                                                const Position& end) {}

static Vector<gfx::Size> ComputeSizesOfQuads(const Vector<gfx::QuadF>& quads) {}

// http://crbug.com/1240510
TEST_F(RangeTest, GetBorderAndTextQuadsWithCombinedText) {}

TEST_F(RangeTest, GetBorderAndTextQuadsWithFirstLetterOne) {}

TEST_F(RangeTest, GetBorderAndTextQuadsWithFirstLetterThree) {}

TEST_F(RangeTest, CollapsedRangeGetBorderAndTextQuadsWithFirstLetter) {}

TEST_F(RangeTest, ContainerNodeRemoval) {}

TEST_F(RangeTest,
       ContainerNodeRemovalWithSequentialFocusNavigationStartingPoint) {}

}  // namespace blink