chromium/third_party/blink/renderer/core/editing/commands/composite_edit_command_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/commands/composite_edit_command.h"

#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/editing/frame_selection.h"
#include "third_party/blink/renderer/core/editing/testing/editing_test_base.h"
#include "third_party/blink/renderer/core/editing/visible_position.h"
#include "third_party/blink/renderer/core/editing/visible_units.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/keywords.h"

namespace blink {

namespace {

class SampleCommand final : public CompositeEditCommand {};

SampleCommand::SampleCommand(Document& document)
    :{}

void SampleCommand::InsertNodeBefore(
    Node* insert_child,
    Node* ref_child,
    EditingState* editing_state,
    ShouldAssumeContentIsAlwaysEditable
        should_assume_content_is_always_editable) {}

void SampleCommand::InsertNodeAfter(Node* insert_child,
                                    Node* ref_child,
                                    EditingState* editing_state) {}

void SampleCommand::MoveParagraphContentsToNewBlockIfNecessary(
    const Position& position,
    EditingState* editing_state) {}

void SampleCommand::MoveParagraphs(
    const VisiblePosition& start_of_paragraph_to_move,
    const VisiblePosition& end_of_paragraph_to_move,
    const VisiblePosition& destination,
    EditingState* editing_state) {}

}  // namespace

class CompositeEditCommandTest : public EditingTestBase {};

TEST_F(CompositeEditCommandTest, insertNodeBefore) {}

TEST_F(CompositeEditCommandTest, insertNodeBeforeInUneditable) {}

TEST_F(CompositeEditCommandTest, insertNodeBeforeDisconnectedNode) {}

TEST_F(CompositeEditCommandTest, insertNodeBeforeWithDirtyLayoutTree) {}

TEST_F(CompositeEditCommandTest,
       MoveParagraphContentsToNewBlockWithNonEditableStyle) {}

TEST_F(CompositeEditCommandTest,
       MoveParagraphContentsToNewBlockWithUAShadowDOM1) {}

TEST_F(CompositeEditCommandTest,
       MoveParagraphContentsToNewBlockWithUAShadowDOM2) {}

TEST_F(CompositeEditCommandTest,
       MoveParagraphContentsToNewBlockWithButtonAndBr) {}

TEST_F(CompositeEditCommandTest, InsertNodeOnDisconnectedParent) {}

TEST_F(CompositeEditCommandTest, MoveParagraphsWithBr) {}

TEST_F(CompositeEditCommandTest, MoveParagraphsWithInlineBlocks) {}

TEST_F(CompositeEditCommandTest, MoveParagraphsWithTableAndCaption) {}

TEST_F(CompositeEditCommandTest,
       MoveParagraphContentsToNewBlockWithNullVisiblePosition1) {}

TEST_F(CompositeEditCommandTest,
       MoveParagraphContentsToNewBlockWithNullVisiblePosition2) {}

}  // namespace blink