jdk/test/sun/util/resources/TimeZone/Bug6317929.java
author skovalev
Wed, 07 Sep 2016 10:04:46 -0700
changeset 40791 a080a12eaa93
parent 31263 a81a0af34ca0
permissions -rw-r--r--
8165604: Fix module dependencies for sun/util/* tests Reviewed-by: rriggs, naoto
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
40791
a080a12eaa93 8165604: Fix module dependencies for sun/util/* tests
skovalev
parents: 31263
diff changeset
     2
 * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5305
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5305
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5305
diff changeset
    21
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/*
40791
a080a12eaa93 8165604: Fix module dependencies for sun/util/* tests
skovalev
parents: 31263
diff changeset
    25
 * @test
a080a12eaa93 8165604: Fix module dependencies for sun/util/* tests
skovalev
parents: 31263
diff changeset
    26
 * @bug 6317929 6409419 8008577
a080a12eaa93 8165604: Fix module dependencies for sun/util/* tests
skovalev
parents: 31263
diff changeset
    27
 * @modules jdk.localedata
a080a12eaa93 8165604: Fix module dependencies for sun/util/* tests
skovalev
parents: 31263
diff changeset
    28
 * @summary Test case for tzdata2005m support for 9 locales
a080a12eaa93 8165604: Fix module dependencies for sun/util/* tests
skovalev
parents: 31263
diff changeset
    29
 * @run main/othervm -Djava.locale.providers=JRE,SPI Bug6317929
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.Locale;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.util.TimeZone;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
public class Bug6317929 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    static Locale[] locales2Test = new Locale[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        new Locale("en"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
        new Locale("de"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        new Locale("es"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        new Locale("fr"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        new Locale("it"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
        new Locale("ja"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
        new Locale("ko"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
        new Locale("sv"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
        new Locale("zh","CN"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        new Locale("zh","TW")
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    public static void main(String[] args) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        Locale tzLocale;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        TimeZone Coral_Harbour = TimeZone.getTimeZone("America/Coral_Harbour");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        tzLocale = locales2Test[0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
           ("Eastern Standard Time"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                                       "\"Eastern Standard Time\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
        tzLocale = locales2Test[1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
           ("\u00d6stliche Normalzeit"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                                       "\"\u00d6stliche Normalzeit\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        tzLocale = locales2Test[2];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
           ("Hora est\u00e1ndar Oriental"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
                                       "\"Hora est\u00e1ndar Oriental\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        tzLocale = locales2Test[3];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
           ("Heure normale de l'Est"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
                                       "\"Heure normale de l'Est\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        tzLocale = locales2Test[4];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
           ("Ora solare USA orientale"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                                       "\"Ora solare USA orientale\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        tzLocale = locales2Test[5];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
           ("\u6771\u90e8\u6a19\u6e96\u6642"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                                       "\"\u6771\u90e8\u6a19\u6e96\u6642\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        tzLocale = locales2Test[6];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
           ("\ub3d9\ubd80 \ud45c\uc900\uc2dc"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
                                       "\"\ub3d9\ubd80 \ud45c\uc900\uc2dc\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        tzLocale = locales2Test[7];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
           ("Eastern, normaltid"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                                       "\"Eastern, normaltid\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        tzLocale = locales2Test[8];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
           ("\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                                       "\"\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        tzLocale = locales2Test[9];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
           ("\u6771\u65b9\u6a19\u6e96\u6642\u9593"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                                       "\"\u6771\u65b9\u6a19\u6e96\u6642\u9593\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        TimeZone Currie = TimeZone.getTimeZone("Australia/Currie");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        tzLocale = locales2Test[0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
26452
04bfc550f2b4 8049343: (tz) Support tzdata2014g
aefimov
parents: 23010
diff changeset
   127
           ("Australian Eastern Standard Time (New South Wales)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                                       "Australia/Currie should be " +
26452
04bfc550f2b4 8049343: (tz) Support tzdata2014g
aefimov
parents: 23010
diff changeset
   131
                                       "\"Australian Eastern Standard Time " +
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                                       "(New South Wales)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        tzLocale = locales2Test[1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
22262
949654c1c30e 8025051: Update resource files for TimeZone display names
aefimov
parents: 21372
diff changeset
   135
           ("\u00D6stliche Normalzeit (New South Wales)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                                       "Australia/Currie should be " +
22262
949654c1c30e 8025051: Update resource files for TimeZone display names
aefimov
parents: 21372
diff changeset
   139
                                       "\"\u00D6stliche Normalzeit " +
949654c1c30e 8025051: Update resource files for TimeZone display names
aefimov
parents: 21372
diff changeset
   140
                                       "(New South Wales)\"");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        tzLocale = locales2Test[2];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
           ("Hora est\u00e1ndar Oriental (Nueva Gales del Sur)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                                       "\"Hora est\u00e1ndar Oriental " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                                       "(Nueva Gales del Sur)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        tzLocale = locales2Test[3];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
           ("Heure normale de l'Est (Nouvelle-Galles du Sud)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
                                       "\"Heure normale de l'Est " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
                                       "(Nouvelle-Galles du Sud)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        tzLocale = locales2Test[4];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   159
           ("Ora standard dell'Australia orientale (Nuovo Galles del Sud)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                                       "Australia/Currie should be " +
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   163
                                       "\"Ora standard dell'Australia orientale " +
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                                       "(Nuovo Galles del Sud)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        tzLocale = locales2Test[5];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   167
           ("\u6771\u90E8\u6A19\u6E96\u6642" +
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   168
            "(\u30CB\u30E5\u30FC\u30B5\u30A6\u30B9\u30A6\u30A7\u30FC\u30EB\u30BA)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                                       "Australia/Currie should be " +
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   172
                                       "\"\u6771\u90E8\u6A19\u6E96\u6642" +
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   173
                                       "(\u30CB\u30E5\u30FC\u30B5\u30A6\u30B9" +
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   174
                                       "\u30A6\u30A7\u30FC\u30EB\u30BA)\"");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        tzLocale = locales2Test[6];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   177
           ("\uB3D9\uBD80 \uD45C\uC900\uC2DC(\uB274\uC0AC\uC6B0\uC2A4\uC6E8\uC77C\uC988)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                                       "Australia/Currie should be " +
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   181
                                       "\"\uB3D9\uBD80 \uD45C\uC900\uC2DC" +
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   182
                                       "(\uB274\uC0AC\uC6B0\uC2A4\uC6E8\uC77C\uC988)\"");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        tzLocale = locales2Test[7];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   185
           ("\u00D6stlig standardtid (New South Wales)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                                       "Australia/Currie should be " +
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   189
                                       "\"\u00D6stlig standardtid " +
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   190
                                       "(New South Wales)\"");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        tzLocale = locales2Test[8];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   193
           ("\u4E1C\u90E8\u6807\u51C6\u65F6\u95F4 (\u65B0\u5357\u5A01\u5C14\u65AF)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                                       "Australia/Currie should be " +
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   197
                                       "\"\u4E1C\u90E8\u6807\u51C6\u65F6\u95F4 " +
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   198
                                       "(\u65B0\u5357\u5A01\u5C14\u65AF)\"");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
        tzLocale = locales2Test[9];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   201
           ("\u6771\u90E8\u6A19\u6E96\u6642\u9593 (\u65B0\u5357\u5A01\u723E\u65AF)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                                       "Australia/Currie should be " +
21372
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   205
                                       "\"\u6771\u90E8\u6A19\u6E96\u6642\u9593 " +
6e345b5118f7 8026772: test/sun/util/resources/TimeZone/Bug6317929.java failing
aefimov
parents: 7668
diff changeset
   206
                                       "(\u65B0\u5357\u5A01\u723E\u65AF)\"");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
}