Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
76adf692
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
76adf692
编写于
6月 21, 2022
作者:
I
inter515
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改colorMode字段的断言
Signed-off-by:
N
inter515
<
ry.renyi@huawei.com
>
上级
bd9b930a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
4 deletion
+4
-4
appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/test/ActsBmsHapModuleTest.test.js
...etest/entry/src/main/js/test/ActsBmsHapModuleTest.test.js
+0
-3
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
...emanagertest/entry/src/main/js/test/ExampleJsunit.test.js
+4
-1
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/test/ActsBmsHapModuleTest.test.js
浏览文件 @
76adf692
...
@@ -57,7 +57,6 @@ describe('ActsBmsHapModuleTest', function () {
...
@@ -57,7 +57,6 @@ describe('ActsBmsHapModuleTest', function () {
expect
(
hapModuleInfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
metadata
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
metadata
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
installationFree
).
assertEqual
(
false
);
expect
(
hapModuleInfo
.
installationFree
).
assertEqual
(
false
);
expect
(
hapModuleInfo
.
colorMode
).
assertEqual
(
bundle
.
ColorMode
.
AUTO_MODE
);
done
();
done
();
}
}
}
}
...
@@ -122,7 +121,6 @@ describe('ActsBmsHapModuleTest', function () {
...
@@ -122,7 +121,6 @@ describe('ActsBmsHapModuleTest', function () {
expect
(
hapModuleInfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
metadata
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
metadata
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
installationFree
).
assertEqual
(
false
);
expect
(
hapModuleInfo
.
installationFree
).
assertEqual
(
false
);
expect
(
hapModuleInfo
.
colorMode
).
assertEqual
(
bundle
.
ColorMode
.
DARK_MODE
);
done
();
done
();
}
}
});
});
...
@@ -158,7 +156,6 @@ describe('ActsBmsHapModuleTest', function () {
...
@@ -158,7 +156,6 @@ describe('ActsBmsHapModuleTest', function () {
expect
(
hapModuleInfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
metadata
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
metadata
.
length
).
assertEqual
(
0
);
expect
(
hapModuleInfo
.
installationFree
).
assertEqual
(
false
);
expect
(
hapModuleInfo
.
installationFree
).
assertEqual
(
false
);
expect
(
hapModuleInfo
.
colorMode
).
assertEqual
(
bundle
.
ColorMode
.
LIGHT_MODE
);
done
();
done
();
}
}
});
});
...
...
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
76adf692
...
@@ -1123,7 +1123,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1123,7 +1123,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
type
).
assertEqual
(
demo
.
AbilityType
.
PAGE
);
expect
(
datainfo
.
type
).
assertEqual
(
demo
.
AbilityType
.
PAGE
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -1384,6 +1384,9 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1384,6 +1384,9 @@ describe('ActsBundleManagerTest', function () {
it
(
'
AbilityTypeTest_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
AbilityTypeTest_0100
'
,
0
,
async
function
(
done
)
{
expect
(
demo
.
AbilitySubType
.
CA
).
assertEqual
(
1
);
expect
(
demo
.
AbilitySubType
.
CA
).
assertEqual
(
1
);
expect
(
demo
.
AbilityType
.
UNKNOWN
).
assertEqual
(
0
);
expect
(
demo
.
AbilityType
.
UNKNOWN
).
assertEqual
(
0
);
expect
(
demo
.
ColorMode
.
AUTO_MODE
).
assertEqual
(
-
1
);
expect
(
demo
.
ColorMode
.
DARK_MODE
).
assertEqual
(
0
);
expect
(
demo
.
ColorMode
.
LIGHT_MODE
).
assertEqual
(
1
);
done
();
done
();
})
})
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录