Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
naotoj committed Nov 9, 2023
1 parent 7b2f1f9 commit b864f23
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 226 deletions.
173 changes: 0 additions & 173 deletions test/jdk/sun/util/locale/provider/Bug8038436.java

This file was deleted.

45 changes: 0 additions & 45 deletions test/jdk/sun/util/locale/provider/Bug8163350.java

This file was deleted.

6 changes: 3 additions & 3 deletions test/jdk/sun/util/resources/Locale/Bug4429024.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -24,8 +24,8 @@
* @test
* @summary checking localised language/country names in finnish
* @modules jdk.localedata
* @bug 4429024 4964035 6558856 8008577 8287868
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug4429024
* @bug 4429024 4964035 6558856 8008577 8287868 8174269
* @run main Bug4429024
*/

import java.util.Locale;
Expand Down
6 changes: 3 additions & 3 deletions test/jdk/sun/util/resources/Locale/Bug4965260.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -22,10 +22,10 @@
*/
/*
* @test
* @bug 4965260 8008577 8287868
* @bug 4965260 8008577 8287868 8174269
* @modules jdk.localedata
* @summary Verifies the language name of "nl" for supported locales
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug4965260
* @run main Bug4965260
*/

import java.util.Locale;
Expand Down
8 changes: 6 additions & 2 deletions test/jdk/sun/util/resources/Locale/Bug6275682.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -25,7 +25,7 @@
* @test
* @summary Verifying that the language names starts with lowercase in spanish
* @modules jdk.localedata
* @bug 6275682
* @bug 6275682 8174269
*/

import java.util.Locale;
Expand All @@ -38,6 +38,10 @@ public static void main (String[] args) throws Exception {
String error = "";

for (int i = 0; i < isoLangs.length; i++) {
// CLDR does not seem to have "bh" and "mo" language name in Spanish
if (isoLangs[i].equals("bh") || isoLangs[i].equals("mo")) {
continue;
}
Locale current = new Locale (isoLangs[i]);
String localeString = current.getDisplayLanguage (es);
String startLetter = localeString.substring (0,1);
Expand Down

0 comments on commit b864f23

Please sign in to comment.