Skip to content

Commit 482b477

Browse files
committed
Use Locale.ROOT instead of Locale.US.
1 parent 14a0da4 commit 482b477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

junit/io/sf/carte/doc/style/css/awt/AWTHelperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ public void testCreateFont() throws CSSMediaException, IOException {
8080
assertNotNull(styledecl);
8181
Font font = AWTHelper.createFont(styledecl);
8282
assertNotNull(font);
83-
assertNotNull(font.getFamily(Locale.US));
83+
assertNotNull(font.getFamily(Locale.ROOT));
8484
assertEquals("Helvetica", font.getName());
8585
assertEquals(12, font.getSize());
8686
xhtmlDoc.setTargetMedium("screen");
8787
styledecl = xhtmlDoc.getStyleSheet().getComputedStyle(elm, null);
8888
assertNotNull(styledecl);
8989
font = AWTHelper.createFont(styledecl);
9090
assertNotNull(font);
91-
assertNotNull(font.getFamily(Locale.US));
91+
assertNotNull(font.getFamily(Locale.ROOT));
9292
assertEquals("Helvetica", font.getName());
9393
assertEquals(20, font.getSize());
9494
}

0 commit comments

Comments
 (0)