Changeset 16293 in josm for trunk/test


Ignore:
Timestamp:
2020-04-13T22:05:54+02:00 (5 years ago)
Author:
simon04
Message:

see #8352 - PropertiesDialog/Presets: evaluate CSS color names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ColorHelperTest.java

    r16252 r16293  
    2626        assertEquals(Color.CYAN, ColorHelper.html2color("#00ffff"));
    2727        assertEquals(Color.CYAN, ColorHelper.html2color("#00FFFF"));
     28        assertEquals(Color.CYAN, ColorHelper.html2color("cyan"));
     29        assertEquals(new Color(0xa52a2a), ColorHelper.html2color("brown"));
     30        assertEquals(new Color(0x6495ed), ColorHelper.html2color("cornflowerblue"));
    2831        assertEquals(new Color(0x12345678, true), ColorHelper.html2color("#34567812"));
    2932    }
Note: See TracChangeset for help on using the changeset viewer.