| Index: Source/core/html/HTMLFormControlElementTest.cpp
|
| diff --git a/Source/core/html/HTMLFormControlElementTest.cpp b/Source/core/html/HTMLFormControlElementTest.cpp
|
| index d64936d11e96c9291ea226c8984380f54a1f9c7d..1258a49573a75a47797dc6331c439b122a8e02a5 100644
|
| --- a/Source/core/html/HTMLFormControlElementTest.cpp
|
| +++ b/Source/core/html/HTMLFormControlElementTest.cpp
|
| @@ -67,4 +67,16 @@ TEST_F(HTMLFormControlElementTest, customValidationMessageTextDirection)
|
| EXPECT_EQ(RTL, subMessageDir);
|
| }
|
|
|
| +TEST_F(HTMLFormControlElementTest, isValidElement)
|
| +{
|
| + document().documentElement()->setInnerHTML("<body><input required id=input1><input required id=input2 value=0></body>", ASSERT_NO_EXCEPTION);
|
| + document().view()->updateLayoutAndStyleIfNeededRecursive();
|
| +
|
| + HTMLInputElement* input1 = toHTMLInputElement(document().getElementById("input1"));
|
| + HTMLInputElement* input2 = toHTMLInputElement(document().getElementById("input2"));
|
| +
|
| + EXPECT_FALSE(input1->isValidElement());
|
| + EXPECT_TRUE(input2->isValidElement());
|
| +}
|
| +
|
| }
|
|
|