| Index: third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp
|
| index f24144eaf158313da3e4cf038faaa687493c2caf..1b94a3dd5db94c443c1cc293f884e4e0c4eed236 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp
|
| @@ -341,4 +341,13 @@ TEST_F(HTMLSelectElementTest, DefaultToolTip)
|
| EXPECT_EQ(String(), optgroup->defaultToolTip());
|
| }
|
|
|
| +TEST_F(HTMLSelectElementTest, SetRecalcListItemsByOptgroupRemoval)
|
| +{
|
| + document().documentElement()->setInnerHTML("<select><optgroup><option>sub1</option><option>sub2</option></optgroup></select>", ASSERT_NO_EXCEPTION);
|
| + document().view()->updateAllLifecyclePhases();
|
| + HTMLSelectElement* select = toHTMLSelectElement(document().body()->firstChild());
|
| + select->setInnerHTML("", ASSERT_NO_EXCEPTION);
|
| + // PASS if setInnerHTML didn't have a check failure.
|
| +}
|
| +
|
| } // namespace blink
|
|
|