提交 d3adb187 编写于 作者: O openharmony_ci 提交者: Gitee

!576 modify testcases on 20210910

Merge pull request !576 from 杨清/0720
...@@ -134,9 +134,31 @@ describe('intlTest', function () { ...@@ -134,9 +134,31 @@ describe('intlTest', function () {
* @tc.desc check the caseFirst * @tc.desc check the caseFirst
*/ */
it('locale_test_1100', 0, function () { it('locale_test_1100', 0, function () {
var locale = new Intl.Locale('ja-Jpan-JP', {caseFirst: true}); var locale = new Intl.Locale('ja-Jpan-JP', {caseFirst: 'upper'});
console.log("locale_test_1100 " + locale.caseFirst); console.log("locale_test_1100 " + locale.caseFirst);
expect(locale.caseFirst == true).assertTrue(); expect(locale.caseFirst).assertEqual("upper");
})
/* *
* @tc.number SUB_GLOBAL_I18N_JS_LOCALE_1120
* @tc.name format the caseFirst
* @tc.desc check the caseFirst
*/
it('locale_test_1120', 0, function () {
var locale = new Intl.Locale('ja-Jpan-JP', {caseFirst: 'lower'});
console.log("locale_test_1120 " + locale.caseFirst);
expect(locale.caseFirst).assertEqual("lower");
})
/* *
* @tc.number SUB_GLOBAL_I18N_JS_LOCALE_1140
* @tc.name format the caseFirst
* @tc.desc check the caseFirst
*/
it('locale_test_1140', 0, function () {
var locale = new Intl.Locale('ja-Jpan-JP', {caseFirst: 'false'});
console.log("locale_test_1140 " + locale.caseFirst);
expect(locale.caseFirst).assertEqual("false");
}) })
/* * /* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册