chromium/third_party/blink/renderer/core/html/forms/html_input_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/renderer/core/html/forms/html_input_element.h"

#include <memory>

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_keyboard_event_init.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/events/keyboard_event.h"
#include "third_party/blink/renderer/core/fileapi/file_list.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/html/forms/date_time_chooser.h"
#include "third_party/blink/renderer/core/html/forms/file_input_type.h"
#include "third_party/blink/renderer/core/html/forms/html_form_element.h"
#include "third_party/blink/renderer/core/html/forms/html_option_element.h"
#include "third_party/blink/renderer/core/html/html_body_element.h"
#include "third_party/blink/renderer/core/html/html_html_element.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/testing/null_execution_context.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"

Truly;

namespace blink {

namespace {

class PasswordResetChromeClient : public EmptyChromeClient {};

class HTMLInputElementTestChromeClient : public EmptyChromeClient {};

}  // namespace

class HTMLInputElementTest : public PageTestBase {};

TEST_F(HTMLInputElementTest, FilteredDataListOptionsNoList) {}

TEST_F(HTMLInputElementTest, FilteredDataListOptionsContain) {}

TEST_F(HTMLInputElementTest, FilteredDataListOptionsForMultipleEmail) {}

TEST_F(HTMLInputElementTest, FilteredDataListOptionsDynamicContain) {}

TEST_F(HTMLInputElementTest, create) {}

TEST_F(HTMLInputElementTest, NoAssertWhenMovedInNewDocument) {}

TEST_F(HTMLInputElementTest, DefaultToolTip) {}

// crbug.com/589838
TEST_F(HTMLInputElementTest, ImageTypeCrash) {}

TEST_F(HTMLInputElementTest, RadioKeyDownDCHECKFailure) {}

TEST_F(HTMLInputElementTest, DateTimeChooserSizeParamRespectsScale) {}

TEST_F(HTMLInputElementTest, StepDownOverflow) {}

TEST_F(HTMLInputElementTest, StepDownDefaultToMin) {}

TEST_F(HTMLInputElementTest, CheckboxHasNoShadowRoot) {}

TEST_F(HTMLInputElementTest, ChangingInputTypeCausesShadowRootToBeCreated) {}

TEST_F(HTMLInputElementTest, RepaintAfterClearingFile) {}

TEST_F(HTMLInputElementTest, UpdateTypeDcheck) {}

TEST_F(HTMLInputElementTest, LazilyCreateShadowTree) {}

TEST_F(HTMLInputElementTest, LazilyCreateShadowTreeWithPlaceholder) {}

TEST_F(HTMLInputElementTest, LazilyCreateShadowTreeWithValue) {}

struct PasswordFieldResetParam {};

class HTMLInputElementPasswordFieldResetTest
    : public HTMLInputElementTest,
      public ::testing::WithParamInterface<PasswordFieldResetParam> {};

// Tests that PasswordFieldReset() is (only) called for empty fields. This is
// particularly relevant for field types where setValue("") does not imply
// value().IsEmpty(), such as <input type="range"> (see crbug.com/1265130).
TEST_P(HTMLInputElementPasswordFieldResetTest, PasswordFieldReset) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace blink