DescriptionMacViews: 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282405
Patch Set 1 #
Total comments: 1
Patch Set 2 : Don't mutate TextComboboxModel #Patch Set 3 : Fix failing tests from fallout #
Total comments: 2
Patch Set 4 : Remove default parameter #Messages
Total messages: 13 (0 generated)
|