Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
facf0e29
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看板
未验证
提交
facf0e29
编写于
11月 19, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 19, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6574 modify bundle name
Merge pull request !6574 from 杨清/1228
上级
91404314
234e337d
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
20 addition
and
16 deletion
+20
-16
global/resmgr_standard/resmgrjs/src/main/js/test/Resmgr.test.js
.../resmgr_standard/resmgrjs/src/main/js/test/Resmgr.test.js
+20
-16
未找到文件。
global/resmgr_standard/resmgrjs/src/main/js/test/Resmgr.test.js
浏览文件 @
facf0e29
...
...
@@ -37,7 +37,9 @@ describe('resMgrTest', function () {
* @tc.desc get the resource manager in callback mode with bundlename
*/
it
(
'
getResourceManager_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
(
'
ohos.intl.test
'
,
(
error
,
mgr
)
=>
{
console
.
log
(
'
getResourceManager_test_002 0
'
);
resmgr
.
getResourceManager
(
'
ohos.resmgr.test
'
,
(
error
,
mgr
)
=>
{
console
.
log
(
'
getResourceManager_test_002 1
'
);
expect
(
mgr
!==
null
).
assertTrue
();
done
();
})
...
...
@@ -61,7 +63,9 @@ describe('resMgrTest', function () {
* @tc.desc get the resource manager in promise mode with bundlename
*/
it
(
'
getResourceManager_test_004
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
(
'
ohos.intl.test
'
).
then
(
mgr
=>
{
console
.
log
(
'
getResourceManager_test_004 0
'
);
resmgr
.
getResourceManager
(
'
ohos.resmgr.test
'
).
then
(
mgr
=>
{
console
.
log
(
'
getResourceManager_test_004 1
'
);
expect
(
mgr
!==
null
).
assertTrue
();
done
();
})
...
...
@@ -122,7 +126,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getStringValue_test_001
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getStringValue
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getStringValue
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000008
},
(
err
,
value
)
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -140,7 +144,7 @@ describe('resMgrTest', function () {
it
(
'
getStringValue_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
console
.
info
(
`getStringValue_test_002
${
JSON
.
stringify
(
mgr
)}
`
)
mgr
.
getStringValue
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getStringValue
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000008
}).
then
(
value
=>
{
console
.
info
(
`getStringValue_test_002 promise
${
JSON
.
stringify
(
error
)}
`
)
...
...
@@ -464,7 +468,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getStringArrayValue_test_001
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getStringArrayValue
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getStringArrayValue
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x0100000a
},
(
err
,
value
)
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -481,7 +485,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getStringArrayValue_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getStringArrayValue
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getStringArrayValue
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x0100000a
}).
then
(
value
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -573,7 +577,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getMediaContent_test_001
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getMediaContent
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getMediaContent
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000017
},
(
err
,
value
)
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -590,7 +594,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getMediaContent_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getMediaContent
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getMediaContent
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000017
}).
then
(
value
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -667,7 +671,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getMediaContentBase64_test_001
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getMediaContentBase64
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getMediaContentBase64
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000017
},
(
err
,
value
)
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -684,7 +688,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getMediaContentBase64_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getMediaContentBase64
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getMediaContentBase64
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000017
}).
then
(
value
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -1054,7 +1058,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getPluralStringValue_test_001
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getPluralStringValue
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getPluralStringValue
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000012
},
1
,
(
error
,
value
)
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -1071,7 +1075,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getPluralStringValue_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
mgr
.
getPluralStringValue
({
bundleName
:
"
ohos.
intl
.test
"
,
mgr
.
getPluralStringValue
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000012
},
1
).
then
(
value
=>
{
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -1568,7 +1572,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getStringSync_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
let
value
=
mgr
.
getStringSync
({
bundleName
:
"
ohos.
intl
.test
"
,
let
value
=
mgr
.
getStringSync
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000008
});
expect
(
value
!==
null
).
assertTrue
();
...
...
@@ -1635,7 +1639,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getBoolean_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
let
value
=
mgr
.
getBoolean
({
bundleName
:
"
ohos.
intl
.test
"
,
let
value
=
mgr
.
getBoolean
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x0100000c
});
console
.
log
(
'
getBoolean_test_002
'
+
value
);
...
...
@@ -1681,7 +1685,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getinteger_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
let
value
=
mgr
.
getNumber
({
bundleName
:
"
ohos.
intl
.test
"
,
let
value
=
mgr
.
getNumber
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000000
});
console
.
log
(
'
getinteger_test_002
'
+
value
);
...
...
@@ -1725,7 +1729,7 @@ describe('resMgrTest', function () {
*/
it
(
'
getfloat_test_002
'
,
0
,
async
function
(
done
)
{
resmgr
.
getResourceManager
((
error
,
mgr
)
=>
{
let
value
=
mgr
.
getNumber
({
bundleName
:
"
ohos.
intl
.test
"
,
let
value
=
mgr
.
getNumber
({
bundleName
:
"
ohos.
resmgr
.test
"
,
moduleName
:
"
entry
"
,
id
:
0x01000015
});
console
.
log
(
'
getfloat_test_002
'
+
value
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录