chromium/third_party/blink/renderer/core/editing/position_iterator_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/editing/position_iterator.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/renderer/core/dom/flat_tree_traversal.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/editing/editing_utilities.h"
#include "third_party/blink/renderer/core/editing/position.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/html/forms/html_input_element.h"
#include "third_party/blink/renderer/core/html/forms/html_select_element.h"
#include "third_party/blink/renderer/core/html/html_object_element.h"

namespace blink {

ElementsAre;

class PositionIteratorTest : public EditingTestBase {};

TEST_F(PositionIteratorTest, DecrementFromInputElementAfterChildren) {}

TEST_F(PositionIteratorTest, DecrementFromInInputElementAfterNode) {}

TEST_F(PositionIteratorTest, DecrementFromInInputElementBeforeNode) {}

TEST_F(PositionIteratorTest, DecrementFromInInputElementInnerEditorAfterNode) {}

TEST_F(PositionIteratorTest, DecrementFromInInputElementOffset0) {}

TEST_F(PositionIteratorTest, DecrementFromInInputElementOffset1) {}

TEST_F(PositionIteratorTest, DecrementFromObjectElementAfterChildren) {}

TEST_F(PositionIteratorTest, DecrementFromObjectElementAfterNode) {}

TEST_F(PositionIteratorTest, DecrementFromObjectElementBeforeNode) {}

TEST_F(PositionIteratorTest, DecrementFromObjectElementOffset0) {}

TEST_F(PositionIteratorTest, DecrementFromObjectElementOffset1) {}

TEST_F(PositionIteratorTest, DecrementFromSelectElementAfterChildren) {}

TEST_F(PositionIteratorTest, DecrementFromSelectElementAfterNode) {}

TEST_F(PositionIteratorTest, DecrementFromSelectElementBeforeNode) {}

TEST_F(PositionIteratorTest, DecrementFromSelectElementOffset0) {}

TEST_F(PositionIteratorTest, DecrementFromSelectElementOffset1) {}

TEST_F(PositionIteratorTest, DecrementWithBrInOption) {}

TEST_F(PositionIteratorTest, DecrementWithCollapsedSpace) {}

TEST_F(PositionIteratorTest, DecrementWithCommentEmpty) {}

TEST_F(PositionIteratorTest, DecrementWithCommentNotEmpty) {}

TEST_F(PositionIteratorTest, DecrementWithInlineElemnt) {}

// For http://crbug.com/695317
TEST_F(PositionIteratorTest, decrementWithInputElement) {}

TEST_F(PositionIteratorTest, DecrementWithNoChildren) {}

TEST_F(PositionIteratorTest, decrementWithSelectElement) {}

// For http://crbug.com/695317
TEST_F(PositionIteratorTest, decrementWithTextAreaElement) {}

// http://crbug.com/1392758
TEST_F(PositionIteratorTest, DecrementWithTextAreaFromAfterChildren) {}

// ---

TEST_F(PositionIteratorTest, IncrementFromInputElementAfterChildren) {}

TEST_F(PositionIteratorTest, IncrementFromInputElementAfterNode) {}

TEST_F(PositionIteratorTest, IncrementFromInputElementBeforeNode) {}

TEST_F(PositionIteratorTest, IncrementFromInputElementOffset0) {}

TEST_F(PositionIteratorTest, IncrementFromInputElementOffset1) {}

TEST_F(PositionIteratorTest, IncrementFromObjectElementAfterChildren) {}

TEST_F(PositionIteratorTest, IncrementFromObjectElementAfterNode) {}

TEST_F(PositionIteratorTest, IncrementFromObjectElementBeforeNode) {}

TEST_F(PositionIteratorTest, IncrementFromObjectElementOffset0) {}

TEST_F(PositionIteratorTest, IncrementFromObjectElementOffset1) {}

TEST_F(PositionIteratorTest, IncrementFromSelectElementAfterChildren) {}

TEST_F(PositionIteratorTest, IncrementFromSelectElementAfterNode) {}

TEST_F(PositionIteratorTest, IncrementFromSelectElementBeforeNode) {}

TEST_F(PositionIteratorTest, IncrementFromSelectElementOffset0) {}

TEST_F(PositionIteratorTest, IncrementFromSelectElementOffset1) {}

TEST_F(PositionIteratorTest, IncrementWithCollapsedSpace) {}

TEST_F(PositionIteratorTest, IncrementWithCommentEmpty) {}

TEST_F(PositionIteratorTest, IncrementWithCommentNonEmpty) {}

TEST_F(PositionIteratorTest, IncrementWithInlineElemnt) {}

// For http://crbug.com/695317
TEST_F(PositionIteratorTest, incrementWithInputElement) {}

TEST_F(PositionIteratorTest, IncrementWithNoChildren) {}

TEST_F(PositionIteratorTest, incrementWithSelectElement) {}

// For http://crbug.com/695317
TEST_F(PositionIteratorTest, incrementWithTextAreaElement) {}

// For http://crbug.com/1248744
TEST_F(PositionIteratorTest, nullPosition) {}

}  // namespace blink