| Index: chrome/renderer/external_popup_menu_unittest.cc
|
| diff --git a/chrome/renderer/external_popup_menu_unittest.cc b/chrome/renderer/external_popup_menu_unittest.cc
|
| index 9595baeac9cdf784bc5c0e7d1da0ba1a953d3006..029903685c1baa5bd359fbe686b6eea7f7cec174 100644
|
| --- a/chrome/renderer/external_popup_menu_unittest.cc
|
| +++ b/chrome/renderer/external_popup_menu_unittest.cc
|
| @@ -15,6 +15,7 @@
|
| namespace {
|
|
|
| const char* const kSelectID = "mySelect";
|
| +const char* const kEmptySelectID = "myEmptySelect";
|
|
|
| } // namespace
|
|
|
| @@ -31,6 +32,8 @@ class ExternalPopupMenuTest : public RenderViewTest {
|
| " <option>zero</option>"
|
| " <option selected='1'>one</option>"
|
| " <option>two</option>"
|
| + "</select>"
|
| + "<select id='myEmptySelect'>"
|
| "</select>";
|
| if (ShouldRemoveSelectOnChange()) {
|
| html += "<script>"
|
| @@ -109,6 +112,12 @@ TEST_F(ExternalPopupMenuTest, ShowPopupThenNavigate) {
|
| view_->OnSelectPopupMenuItem(-1);
|
| }
|
|
|
| +// An empty select should not cause a crash when clicked.
|
| +// http://crbug.com/63774
|
| +TEST_F(ExternalPopupMenuTest, EmptySelect) {
|
| + EXPECT_TRUE(SimulateElementClick(kEmptySelectID));
|
| +}
|
| +
|
| class ExternalPopupMenuRemoveTest : public ExternalPopupMenuTest {
|
| public:
|
| ExternalPopupMenuRemoveTest() {}
|
|
|