提交 0fe602a5 编写于 作者: Y y00314596

modify cases on 20210915 by yangqing3@huawei.com

Signed-off-by: Ny00314596 <yangqing3@huawei.com>
上级 2eca5ce3
......@@ -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');
})
/* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册