Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: content/renderer/external_popup_menu_unittest.cc

Issue 7537033: Move more files from chrome/test to chrome/test/base, part #5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/test/render_view_test.h" 6 #include "chrome/test/base/render_view_test.h"
7 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
11 11
12 // Tests for the external select popup menu (Mac specific). 12 // Tests for the external select popup menu (Mac specific).
13 13
14 namespace { 14 namespace {
15 15
16 const char* const kSelectID = "mySelect"; 16 const char* const kSelectID = "mySelect";
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Click the text field once to show the popup. 131 // Click the text field once to show the popup.
132 EXPECT_TRUE(SimulateElementClick(kSelectID)); 132 EXPECT_TRUE(SimulateElementClick(kSelectID));
133 133
134 // Select something, it causes the select to be removed from the page. 134 // Select something, it causes the select to be removed from the page.
135 view_->OnSelectPopupMenuItem(0); 135 view_->OnSelectPopupMenuItem(0);
136 136
137 // Just to check the soundness of the test, call SimulateElementClick again. 137 // Just to check the soundness of the test, call SimulateElementClick again.
138 // It should return false as the select has been removed. 138 // It should return false as the select has been removed.
139 EXPECT_FALSE(SimulateElementClick(kSelectID)); 139 EXPECT_FALSE(SimulateElementClick(kSelectID));
140 } 140 }
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698