chromium/third_party/blink/renderer/core/exported/web_element_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/public/web/web_element.h"

#include <memory>
#include <vector>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/web/web_document.h"
#include "third_party/blink/public/web/web_label_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_shadow_root_init.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/shadow_root.h"
#include "third_party/blink/renderer/core/editing/frame_selection.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_element.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"

namespace blink {

class WebElementTest : public PageTestBase {};

void WebElementTest::InsertHTML(String html) {}

void WebElementTest::AddScript(String js) {}

WebElement WebElementTest::TestElement() {}

TEST_F(WebElementTest, IsEditable) {}

TEST_F(WebElementTest, IsAutonomousCustomElement) {}

// Tests SelectedText() and ContainsFrameSelection() with divs, including a
// contenteditable.
TEST_F(WebElementTest, SelectedTextOfContentEditable) {}

// Tests SelectedText() and ContainsFrameSelection() with a textarea.
TEST_F(WebElementTest, SelectedTextOfTextArea) {}

// Tests SelectedText() and ContainsFrameSelection() with a document
// with no root, on a form control element.
TEST_F(WebElementTest, SelectedTextEmptyDocument) {}

// Tests SelectText() with a textarea.
TEST_F(WebElementTest, SelectTextOfTextArea) {}

// Tests SelectText() with a contenteditable.
TEST_F(WebElementTest, SelectTextOfContentEditable) {}

TEST_F(WebElementTest, PasteTextIntoContentEditable) {}

TEST_F(WebElementTest, PasteTextIntoTextArea) {}

// Tests that PasteText() aborts when the JavaScript handler of the 'paste'
// event prevents the default handling.
TEST_F(WebElementTest, PasteTextIsNoOpWhenPasteIsCancelled) {}

// Tests that PasteText() aborts when the JavaScript handler of the
// 'beforeinput' event prevents the default handling.
TEST_F(WebElementTest, PasteTextIsNoOpWhenBeforeInputIsCancelled) {}

TEST_F(WebElementTest, ShadowRoot) {}

TEST_F(WebElementTest, ComputedStyleProperties) {}

TEST_F(WebElementTest, Labels) {}

}  // namespace blink