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

Unified Diff: chrome/browser/ui/views/desktop_media_picker_views_unittest.cc

Issue 1313843003: Enable keyboard navigation for Desktopcapture window selection dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test review1 Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/desktop_media_picker_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/desktop_media_picker_views_unittest.cc
diff --git a/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc b/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc
index d43e36c9b598a9e4c2ff9002c9014a709d4b480c..c18f0ef442fbfc9e432988f687edf45f5c9075cd 100644
--- a/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc
+++ b/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc
@@ -185,4 +185,9 @@ TEST_F(DesktopMediaPickerViewsTest, OkButtonDisabledWhenNoSelection) {
GetPickerDialogView()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK));
}
+// Verifies that the MediaListView get the initial focus.
+TEST_F(DesktopMediaPickerViewsTest, ListViewHasInitialFocus) {
+ EXPECT_TRUE(GetPickerDialogView()->GetMediaListViewForTesting()->HasFocus());
Peter Kasting 2015/10/02 18:52:56 I was thinking more along the lines of checking th
gyzhou 2015/10/05 20:50:16 We were verified that bool DesktopMediaListView::O
Peter Kasting 2015/10/05 20:59:45 Yes, I know this. That's why I asked for an inter
gyzhou 2015/10/05 21:12:27 We knew that the arrow key wasn't controlled by li
Peter Kasting 2015/10/05 21:59:26 I don't even understand how this sentence has any
+}
+
} // namespace views
« no previous file with comments | « chrome/browser/ui/views/desktop_media_picker_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698