source: josm/trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/items/PresetListEntryTest.java@ 18221

Last change on this file since 18221 was 18221, checked in by Don-vip, 3 years ago

fix #21319 - Refactoring of class hierarchy around JosmComboBox / AutoCompComboBox (patch by marcello):

  • Code reuse: JosmComboBox now uses a JosmTextField as editor
  • Code reuse: AutoCompComboBox now uses AutoCompTextField as editor
  • JosmComboBox uses more of the original L&F
  • JosmComboBox lists now expand all the way to the bottom or the top of the screen
  • Variable height items in combobox lists now work, see #19321
  • Autocomplete uses different algorithm, fix #21290
  • editable="false" comboboxes in Presets now work, fix #6157 see #11024 see #18714
  • The user may toggle LTR-RTL script in JosmTextField (menu and ctrl+space)
  • LTR-RTL automatically toggles according to key in AddTag and EditTag dialogs, fix #16163
  • Property svn:eol-style set to native
File size: 758 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.tagging.presets.items;
3
4import static org.junit.jupiter.api.Assertions.assertTrue;
5
6import org.junit.jupiter.api.BeforeAll;
7import org.junit.jupiter.api.Test;
8import org.openstreetmap.josm.JOSMFixture;
9
10/**
11 * Unit tests of {@link PresetListEntry} class.
12 */
13class PresetListEntryTest {
14
15 /**
16 * Setup test.
17 */
18 @BeforeAll
19 public static void setUp() {
20 JOSMFixture.createUnitTestFixture().init();
21 }
22
23 /**
24 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12416">#12416</a>.
25 */
26 @Test
27 void testTicket12416() {
28 assertTrue(new PresetListEntry("").getListDisplay(200).contains(" "));
29 }
30}
Note: See TracBrowser for help on using the repository browser.