Changeset 16034 in josm for trunk/test
- Timestamp:
- 2020-03-04T20:57:31+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/util/MultiLineFlowLayoutTest.java
r12800 r16034 52 52 53 53 container.invalidate(); 54 Dimension pref fered= container.getPreferredSize();55 assertEquals(TEST_WIDHT, pref fered.width);56 assertEquals(100, pref fered.height);54 Dimension preferredSize = container.getPreferredSize(); 55 assertEquals(TEST_WIDHT, preferredSize.width); 56 assertEquals(100, preferredSize.height); 57 57 58 58 Dimension minimum = container.getMinimumSize(); … … 70 70 container.setBorder(BorderFactory.createEmptyBorder(3, 0, 7, 0)); 71 71 container.invalidate(); 72 Dimension pref fered= container.getPreferredSize();73 assertEquals(TEST_WIDHT, pref fered.width);74 assertEquals(110, pref fered.height);72 Dimension preferredSize = container.getPreferredSize(); 73 assertEquals(TEST_WIDHT, preferredSize.width); 74 assertEquals(110, preferredSize.height); 75 75 76 76 // This should force wrapping 77 77 container.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 40)); 78 78 container.invalidate(); 79 pref fered= container.getPreferredSize();80 assertEquals(TEST_WIDHT, pref fered.width);81 assertEquals(200, pref fered.height);79 preferredSize = container.getPreferredSize(); 80 assertEquals(TEST_WIDHT, preferredSize.width); 81 assertEquals(200, preferredSize.height); 82 82 } 83 83 … … 91 91 container.setLayout(new MultiLineFlowLayout(FlowLayout.LEADING, 20, 10)); 92 92 container.invalidate(); 93 Dimension pref fered= container.getPreferredSize();94 assertEquals(TEST_WIDHT, pref fered.width);95 assertEquals(230, pref fered.height);93 Dimension preferredSize = container.getPreferredSize(); 94 assertEquals(TEST_WIDHT, preferredSize.width); 95 assertEquals(230, preferredSize.height); 96 96 } 97 97
Note:
See TracChangeset
for help on using the changeset viewer.