Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5ab580b2
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5ab580b2
编写于
9月 22, 2021
作者:
Y
y00314596
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify cases on 20210922 by yangqing3@huawei.com
Signed-off-by:
N
y00314596
<
yangqing3@huawei.com
>
上级
e31ae7e7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
23 deletion
+23
-23
global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js
...18n_standard/intljs/src/main/js/default/test/Intl.test.js
+23
-23
未找到文件。
global/i18n_standard/intljs/src/main/js/default/test/Intl.test.js
浏览文件 @
5ab580b2
...
...
@@ -284,78 +284,78 @@ describe('intlTest', function () {
/* *
* @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2200
* @tc.name test the mini
n
ize interface with one param zh
* @tc.desc check the mini
n
ize method with one param zh
* @tc.name test the mini
m
ize interface with one param zh
* @tc.desc check the mini
m
ize method with one param zh
*/
it
(
'
locale_test_2200
'
,
0
,
function
()
{
let
locale
=
new
Intl
.
Locale
(
'
zh
'
);
console
.
log
(
'
locale_test_2200
'
+
locale
.
mini
n
ize
().
toString
());
console
.
log
(
'
locale_test_2200
'
+
locale
.
mini
m
ize
().
toString
());
expect
(
locale
.
minimize
().
toString
()).
assertEqual
(
'
zh
'
);
})
/* *
* @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2201
* @tc.name test the mini
n
ize interface with one param zh-CN
* @tc.desc check the mini
n
ize method with one param zh-CN
* @tc.name test the mini
m
ize interface with one param zh-CN
* @tc.desc check the mini
m
ize 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
.
mini
n
ize
().
toString
());
console
.
log
(
'
locale_test_2201
'
+
locale
.
mini
m
ize
().
toString
());
expect
(
locale
.
minimize
().
toString
()).
assertEqual
(
'
zh
'
);
})
/* *
* @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2202
* @tc.name test the mini
n
ize interface with one param zh-Hans-CN
* @tc.desc check the mini
n
ize method with one param zh-Hans-CN
* @tc.name test the mini
m
ize interface with one param zh-Hans-CN
* @tc.desc check the mini
m
ize 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
.
mini
n
ize
().
toString
());
console
.
log
(
'
locale_test_2202
'
+
locale
.
mini
m
ize
().
toString
());
expect
(
locale
.
minimize
().
toString
()).
assertEqual
(
'
zh
'
);
})
/* *
* @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2203
* @tc.name test the mini
n
ize interface with one param zh-Hans-CN-u-ca-gregory-co-compact
* @tc.desc check the mini
n
ize method with one param zh-Hans-CN-u-ca-gregory-co-compact
* @tc.name test the mini
m
ize interface with one param zh-Hans-CN-u-ca-gregory-co-compact
* @tc.desc check the mini
m
ize 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
.
mini
n
ize
().
toString
());
console
.
log
(
'
locale_test_2203
'
+
locale
.
mini
m
ize
().
toString
());
expect
(
locale
.
minimize
().
toString
()).
assertEqual
(
'
zh
'
);
})
/* *
* @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2204
* @tc.name test the mini
n
ize interface with zh lcoale
* @tc.desc check the mini
n
ize method with zh lcoale
* @tc.name test the mini
m
ize interface with zh lcoale
* @tc.desc check the mini
m
ize 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
.
mini
n
ize
().
toString
());
console
.
log
(
'
locale_test_2204
'
+
locale
.
mini
m
ize
().
toString
());
expect
(
locale
.
minimize
().
toString
()).
assertEqual
(
'
zh-u-ca-gregory-co-compact
'
);
})
/* *
* @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2205
* @tc.name test the mini
n
ize interface with zh-CN lcoale
* @tc.desc check the mini
n
ize method with zh-CN lcoale
* @tc.name test the mini
m
ize interface with zh-CN lcoale
* @tc.desc check the mini
m
ize 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
.
mini
n
ize
().
toString
());
console
.
log
(
'
locale_test_2205
'
+
locale
.
mini
m
ize
().
toString
());
expect
(
locale
.
minimize
().
toString
()).
assertEqual
(
'
zh-u-ca-gregory-co-compact
'
);
})
/* *
* @tc.number SUB_GLOBAL_INTL_JS_LOCALE_2206
* @tc.name test the mini
n
ize interface with zh-Hans-CN lcoale
* @tc.desc check the mini
n
ize method with zh-Hans-CN lcoale
* @tc.name test the mini
m
ize interface with zh-Hans-CN lcoale
* @tc.desc check the mini
m
ize 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
.
mini
n
ize
().
toString
());
console
.
log
(
'
locale_test_2206
'
+
locale
.
mini
m
ize
().
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 m
inin
ize interface with zh-Hans-CN-u-ca-gregory-co-compact locale
* @tc.desc check the m
inin
ize method with zh-Hans-CN-u-ca-gregory-co-compact locale
* @tc.name test the m
axim
ize interface with zh-Hans-CN-u-ca-gregory-co-compact locale
* @tc.desc check the m
axim
ize 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
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录