提交 769018c0 编写于 作者: O openharmony_ci 提交者: Gitee

!611 modify testcases on 20210915

Merge pull request !611 from 杨清/0911
...@@ -761,7 +761,7 @@ describe('intlTest', function () { ...@@ -761,7 +761,7 @@ describe('intlTest', function () {
let option = { year: 'numeric', month: 'long', day: 'numeric', let option = { year: 'numeric', month: 'long', day: 'numeric',
hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short', hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short',
hourCycle: 'h24',numberingSystem: 'arab', hour12: true, dayPeriod: '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); let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
expect(datefmt.resolvedOptions().locale).assertEqual('zh-CN'); expect(datefmt.resolvedOptions().locale).assertEqual('zh-CN');
expect(datefmt.resolvedOptions().hourCycle).assertEqual('h24'); expect(datefmt.resolvedOptions().hourCycle).assertEqual('h24');
...@@ -773,8 +773,8 @@ describe('intlTest', function () { ...@@ -773,8 +773,8 @@ describe('intlTest', function () {
expect(datefmt.resolvedOptions().minute).assertEqual('2-digit'); expect(datefmt.resolvedOptions().minute).assertEqual('2-digit');
expect(datefmt.resolvedOptions().second).assertEqual('numeric'); expect(datefmt.resolvedOptions().second).assertEqual('numeric');
expect(datefmt.resolvedOptions().dayPeriod).assertEqual('short'); expect(datefmt.resolvedOptions().dayPeriod).assertEqual('short');
// expect(datefmt.resolvedOptions().foramtMatcher).assertEqual('basic'); expect(datefmt.resolvedOptions().formatMatcher).assertEqual('basic');
// expect(datefmt.resolvedOptions().localeMatcher).assertEqual('lookup'); expect(datefmt.resolvedOptions().localeMatcher).assertEqual('lookup');
}) })
/* * /* *
...@@ -970,7 +970,7 @@ describe('intlTest', function () { ...@@ -970,7 +970,7 @@ describe('intlTest', function () {
expect(numfmt.resolvedOptions().currency).assertEqual('EUR'); expect(numfmt.resolvedOptions().currency).assertEqual('EUR');
expect(numfmt.resolvedOptions().currencyDisplay).assertEqual('name'); expect(numfmt.resolvedOptions().currencyDisplay).assertEqual('name');
expect(numfmt.resolvedOptions().currencySign).assertEqual('accounting'); 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 () { ...@@ -1027,7 +1027,7 @@ describe('intlTest', function () {
expect(numfmt.resolvedOptions().currencySign).assertEqual('accounting'); expect(numfmt.resolvedOptions().currencySign).assertEqual('accounting');
expect(numfmt.resolvedOptions().compactDisplay).assertEqual('long'); expect(numfmt.resolvedOptions().compactDisplay).assertEqual('long');
expect(numfmt.resolvedOptions().localeMatcher).assertEqual('lookup'); 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.
先完成此消息的编辑!
想要评论请 注册