From 5ab580b20a40d6fb6c51a45d895f0d8a6afc8d6c Mon Sep 17 00:00:00 2001 From: y00314596 Date: Wed, 22 Sep 2021 11:42:41 +0800 Subject: [PATCH] modify cases on 20210922 by yangqing3@huawei.com Signed-off-by: y00314596 --- .../src/main/js/default/test/Intl.test.js | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js b/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js index ed43157b9..08f929be4 100755 --- a/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js +++ b/global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js @@ -284,78 +284,78 @@ describe('intlTest', function () { /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2200 - * @tc.name test the mininize interface with one param zh - * @tc.desc check the mininize method with one param zh + * @tc.name test the minimize interface with one param zh + * @tc.desc check the minimize method with one param zh */ it('locale_test_2200', 0, function () { let locale = new Intl.Locale('zh'); - console.log('locale_test_2200 ' + locale.mininize().toString()); + console.log('locale_test_2200 ' + locale.minimize().toString()); expect(locale.minimize().toString()).assertEqual('zh'); }) /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2201 - * @tc.name test the mininize interface with one param zh-CN - * @tc.desc check the mininize method with one param zh-CN + * @tc.name test the minimize interface with one param zh-CN + * @tc.desc check the minimize method with one param zh-CN */ it('locale_test_2201', 0, function () { let locale = new Intl.Locale('zh-CN'); - console.log('locale_test_2201 ' + locale.mininize().toString()); + console.log('locale_test_2201 ' + locale.minimize().toString()); expect(locale.minimize().toString()).assertEqual('zh'); }) /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2202 - * @tc.name test the mininize interface with one param zh-Hans-CN - * @tc.desc check the mininize method with one param zh-Hans-CN + * @tc.name test the minimize interface with one param zh-Hans-CN + * @tc.desc check the minimize method with one param zh-Hans-CN */ it('locale_test_2202', 0, function () { let locale = new Intl.Locale('zh-Hans-CN'); - console.log('locale_test_2202 ' + locale.mininize().toString()); + console.log('locale_test_2202 ' + locale.minimize().toString()); expect(locale.minimize().toString()).assertEqual('zh'); }) /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2203 - * @tc.name test the mininize interface with one param zh-Hans-CN-u-ca-gregory-co-compact - * @tc.desc check the mininize method with one param zh-Hans-CN-u-ca-gregory-co-compact + * @tc.name test the minimize interface with one param zh-Hans-CN-u-ca-gregory-co-compact + * @tc.desc check the minimize method with one param zh-Hans-CN-u-ca-gregory-co-compact */ it('locale_test_2203', 0, function () { let locale = new Intl.Locale('zh-Hans-CN-u-ca-gregory-co-compact'); - console.log('locale_test_2203 ' + locale.mininize().toString()); + console.log('locale_test_2203 ' + locale.minimize().toString()); expect(locale.minimize().toString()).assertEqual('zh'); }) /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2204 - * @tc.name test the mininize interface with zh lcoale - * @tc.desc check the mininize method with zh lcoale + * @tc.name test the minimize interface with zh lcoale + * @tc.desc check the minimize method with zh lcoale */ it('locale_test_2204', 0, function () { let locale = new Intl.Locale('zh', {calendar: 'gregory', collation: 'compact'}); - console.log('locale_test_2204 ' + locale.mininize().toString()); + console.log('locale_test_2204 ' + locale.minimize().toString()); expect(locale.minimize().toString()).assertEqual('zh-u-ca-gregory-co-compact'); }) /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2205 - * @tc.name test the mininize interface with zh-CN lcoale - * @tc.desc check the mininize method with zh-CN lcoale + * @tc.name test the minimize interface with zh-CN lcoale + * @tc.desc check the minimize method with zh-CN lcoale */ it('locale_test_2205', 0, function () { let locale = new Intl.Locale('zh-CN', {calendar: 'gregory', collation: 'compact'}); - console.log('locale_test_2205 ' + locale.mininize().toString()); + console.log('locale_test_2205 ' + locale.minimize().toString()); expect(locale.minimize().toString()).assertEqual('zh-u-ca-gregory-co-compact'); }) /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2206 - * @tc.name test the mininize interface with zh-Hans-CN lcoale - * @tc.desc check the mininize method with zh-Hans-CN lcoale + * @tc.name test the minimize interface with zh-Hans-CN lcoale + * @tc.desc check the minimize method with zh-Hans-CN lcoale */ it('locale_test_2206', 0, function () { let locale = new Intl.Locale('zh-hans-CN', {calendar: 'gregory', collation: 'compact'}); - console.log('locale_test_2206 ' + locale.mininize().toString()); + console.log('locale_test_2206 ' + locale.minimize().toString()); expect(locale.minimize().toString()).assertEqual('zh-u-ca-gregory-co-compact'); }) @@ -394,8 +394,8 @@ describe('intlTest', function () { /* * * @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2303 - * @tc.name test the mininize interface with zh-Hans-CN-u-ca-gregory-co-compact locale - * @tc.desc check the mininize method with zh-Hans-CN-u-ca-gregory-co-compact locale + * @tc.name test the maximize interface with zh-Hans-CN-u-ca-gregory-co-compact locale + * @tc.desc check the maximize method with zh-Hans-CN-u-ca-gregory-co-compact locale */ it('locale_test_2303', 0, function () { let locale = new Intl.Locale('zh-Hans-CN-u-ca-gregory-co-compact'); -- GitLab