| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/macros.h" |
| 5 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 6 #include "content/common/frame_messages.h" | 7 #include "content/common/frame_messages.h" |
| 7 #include "content/public/test/render_view_test.h" | 8 #include "content/public/test/render_view_test.h" |
| 8 #include "content/renderer/render_frame_impl.h" | 9 #include "content/renderer/render_frame_impl.h" |
| 9 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "third_party/WebKit/public/platform/WebSize.h" |
| 11 #include "third_party/WebKit/public/web/WebView.h" | 13 #include "third_party/WebKit/public/web/WebView.h" |
| 12 #include "third_party/WebKit/public/platform/WebSize.h" | |
| 13 | 14 |
| 14 // Tests for the external select popup menu (Mac specific). | 15 // Tests for the external select popup menu (Mac specific). |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 const char* const kSelectID = "mySelect"; | 20 const char* const kSelectID = "mySelect"; |
| 20 const char* const kEmptySelectID = "myEmptySelect"; | 21 const char* const kEmptySelectID = "myEmptySelect"; |
| 21 | 22 |
| 22 } // namespace | 23 } // namespace |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 ASSERT_EQ(5U, base::get<0>(param).popup_items.size()); | 197 ASSERT_EQ(5U, base::get<0>(param).popup_items.size()); |
| 197 | 198 |
| 198 // Select index 1 item. This should select item with index 2, | 199 // Select index 1 item. This should select item with index 2, |
| 199 // skipping the item with 'display: none' | 200 // skipping the item with 'display: none' |
| 200 frame()->OnSelectPopupMenuItem(1); | 201 frame()->OnSelectPopupMenuItem(1); |
| 201 | 202 |
| 202 EXPECT_EQ(2, GetSelectedIndex()); | 203 EXPECT_EQ(2, GetSelectedIndex()); |
| 203 } | 204 } |
| 204 | 205 |
| 205 } // namespace content | 206 } // namespace content |
| OLD | NEW |