未验证 提交 569a695c 编写于 作者: O openharmony_ci 提交者: Gitee

!3644 修改colorMode字段的断言

Merge pull request !3644 from ry/OpenHarmony-3.1-Release
......@@ -57,7 +57,6 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.extensionAbilityInfo.length).assertEqual(0);
expect(hapModuleInfo.metadata.length).assertEqual(0);
expect(hapModuleInfo.installationFree).assertEqual(false);
expect(hapModuleInfo.colorMode).assertEqual(bundle.ColorMode.AUTO_MODE);
done();
}
}
......@@ -122,7 +121,6 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.extensionAbilityInfo.length).assertEqual(0);
expect(hapModuleInfo.metadata.length).assertEqual(0);
expect(hapModuleInfo.installationFree).assertEqual(false);
expect(hapModuleInfo.colorMode).assertEqual(bundle.ColorMode.DARK_MODE);
done();
}
});
......@@ -158,7 +156,6 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.extensionAbilityInfo.length).assertEqual(0);
expect(hapModuleInfo.metadata.length).assertEqual(0);
expect(hapModuleInfo.installationFree).assertEqual(false);
expect(hapModuleInfo.colorMode).assertEqual(bundle.ColorMode.LIGHT_MODE);
done();
}
});
......
......@@ -1123,7 +1123,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.bundleName).assertEqual(NAME3);
expect(datainfo.type).assertEqual(demo.AbilityType.PAGE);
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.icon).assertEqual("$media:icon");
expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
......@@ -1384,6 +1384,9 @@ describe('ActsBundleManagerTest', function () {
it('AbilityTypeTest_0100', 0, async function (done) {
expect(demo.AbilitySubType.CA).assertEqual(1);
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();
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册