From 0fe602a513b1543c9dc2d2c0f2bfb78686487afc Mon Sep 17 00:00:00 2001 From: y00314596 Date: Wed, 15 Sep 2021 10:59:31 +0800 Subject: [PATCH] modify cases on 20210915 by yangqing3@huawei.com Signed-off-by: y00314596 --- .../intljs/src/main/js/default/test/I18n.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js b/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js index 969b69cae..8c7b8e0eb 100755 --- a/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js +++ b/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js @@ -761,7 +761,7 @@ describe('intlTest', function () { let option = { year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short', hourCycle: 'h24',numberingSystem: 'arab', hour12: true, dayPeriod: 'short', - foramtMatcher: 'basic', localeMatcher: 'lookup' }; + formatMatcher: 'basic', localeMatcher: 'lookup' }; let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option); expect(datefmt.resolvedOptions().locale).assertEqual('zh-CN'); expect(datefmt.resolvedOptions().hourCycle).assertEqual('h24'); @@ -773,8 +773,8 @@ describe('intlTest', function () { expect(datefmt.resolvedOptions().minute).assertEqual('2-digit'); expect(datefmt.resolvedOptions().second).assertEqual('numeric'); expect(datefmt.resolvedOptions().dayPeriod).assertEqual('short'); - // expect(datefmt.resolvedOptions().foramtMatcher).assertEqual('basic'); - // expect(datefmt.resolvedOptions().localeMatcher).assertEqual('lookup'); + expect(datefmt.resolvedOptions().formatMatcher).assertEqual('basic'); + expect(datefmt.resolvedOptions().localeMatcher).assertEqual('lookup'); }) /* * @@ -970,7 +970,7 @@ describe('intlTest', function () { expect(numfmt.resolvedOptions().currency).assertEqual('EUR'); expect(numfmt.resolvedOptions().currencyDisplay).assertEqual('name'); expect(numfmt.resolvedOptions().currencySign).assertEqual('accounting'); - // expect(numfmt.resolvedOptions().signDisplay).assertEqual('always'); + expect(numfmt.resolvedOptions().signDisplay).assertEqual('always'); }) /* * @@ -1027,7 +1027,7 @@ describe('intlTest', function () { expect(numfmt.resolvedOptions().currencySign).assertEqual('accounting'); expect(numfmt.resolvedOptions().compactDisplay).assertEqual('long'); expect(numfmt.resolvedOptions().localeMatcher).assertEqual('lookup'); - // expect(numfmt.resolvedOptions().signDisplay).assertEqual('always'); + expect(numfmt.resolvedOptions().signDisplay).assertEqual('always'); }) /* * -- GitLab