Ignore:
Timestamp:
2020-03-04T20:57:31+01:00 (19 months ago)
Author:
simon04
Message:

Fix typo "preferred"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/util/MultiLineFlowLayoutTest.java

    r12800 r16034  
    5252
    5353        container.invalidate();
    54         Dimension preffered = container.getPreferredSize();
    55         assertEquals(TEST_WIDHT, preffered.width);
    56         assertEquals(100, preffered.height);
     54        Dimension preferredSize = container.getPreferredSize();
     55        assertEquals(TEST_WIDHT, preferredSize.width);
     56        assertEquals(100, preferredSize.height);
    5757
    5858        Dimension minimum = container.getMinimumSize();
     
    7070        container.setBorder(BorderFactory.createEmptyBorder(3, 0, 7, 0));
    7171        container.invalidate();
    72         Dimension preffered = container.getPreferredSize();
    73         assertEquals(TEST_WIDHT, preffered.width);
    74         assertEquals(110, preffered.height);
     72        Dimension preferredSize = container.getPreferredSize();
     73        assertEquals(TEST_WIDHT, preferredSize.width);
     74        assertEquals(110, preferredSize.height);
    7575
    7676        // This should force wrapping
    7777        container.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 40));
    7878        container.invalidate();
    79         preffered = container.getPreferredSize();
    80         assertEquals(TEST_WIDHT, preffered.width);
    81         assertEquals(200, preffered.height);
     79        preferredSize = container.getPreferredSize();
     80        assertEquals(TEST_WIDHT, preferredSize.width);
     81        assertEquals(200, preferredSize.height);
    8282    }
    8383
     
    9191        container.setLayout(new MultiLineFlowLayout(FlowLayout.LEADING, 20, 10));
    9292        container.invalidate();
    93         Dimension preffered = container.getPreferredSize();
    94         assertEquals(TEST_WIDHT, preffered.width);
    95         assertEquals(230, preffered.height);
     93        Dimension preferredSize = container.getPreferredSize();
     94        assertEquals(TEST_WIDHT, preferredSize.width);
     95        assertEquals(230, preferredSize.height);
    9696    }
    9797
Note: See TracChangeset for help on using the changeset viewer.