MacViews: Tweak ComboboxTest.GetTextForRowTest to get it to pass.
In this test, index 0 is set as separator and TextComboboxModel::GetItemAt asserts that separator items are not reached. However, the combobox's selected index is 0 (default value) and on the Mac OnPaint() will be triggered to cause the NOTREACHED to trigger. TestComboboxModel is now initialized with the separators instead of being mutated after, and GetDefaultIndex is implemented to return the first non-separator index. BUG=378134 Review URL: https://codereview.chromium.org/376703002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282405 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment