equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * |
25 * |
26 * @test |
26 * @test |
27 * @bug 8176841 |
27 * @bug 8176841 8194148 |
28 * @summary Tests *Format class deals with Unicode extensions |
28 * @summary Tests *Format class deals with Unicode extensions |
29 * correctly. |
29 * correctly. |
30 * @modules jdk.localedata |
30 * @modules jdk.localedata |
31 * @run testng/othervm -Djava.locale.providers=CLDR FormatTests |
31 * @run testng/othervm -Djava.locale.providers=CLDR FormatTests |
32 */ |
32 */ |
71 private static final String NUM_DE = "12.345,6789"; |
71 private static final String NUM_DE = "12.345,6789"; |
72 private static final String NUM_DEVA = "\u0967\u0968,\u0969\u096a\u096b.\u096c\u096d\u096e\u096f"; |
72 private static final String NUM_DEVA = "\u0967\u0968,\u0969\u096a\u096b.\u096c\u096d\u096e\u096f"; |
73 private static final String NUM_SINH = "\u0de7\u0de8,\u0de9\u0dea\u0deb.\u0dec\u0ded\u0dee\u0def"; |
73 private static final String NUM_SINH = "\u0de7\u0de8,\u0de9\u0dea\u0deb.\u0dec\u0ded\u0dee\u0def"; |
74 |
74 |
75 private static final Date testDate = new Calendar.Builder() |
75 private static final Date testDate = new Calendar.Builder() |
|
76 .setCalendarType("gregory") |
76 .setDate(2017, 7, 10) |
77 .setDate(2017, 7, 10) |
77 .setTimeOfDay(15, 15, 0) |
78 .setTimeOfDay(15, 15, 0) |
78 .setTimeZone(AMLA) |
79 .setTimeZone(AMLA) |
79 .build() |
80 .build() |
80 .getTime(); |
81 .getTime(); |