diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/MainAbility/test/ActsBmsEtsUnPermissionTest.test.ets b/appexecfwk/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/MainAbility/test/ActsBmsEtsUnPermissionTest.test.ets index 55e2aee0ac0df44e71966f77e50add21097e9338..dc157317dfd16d5aef7d7991d81fbc739033e240 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/MainAbility/test/ActsBmsEtsUnPermissionTest.test.ets +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/MainAbility/test/ActsBmsEtsUnPermissionTest.test.ets @@ -204,15 +204,15 @@ export default function actsBmsJsUnPermissionTest() { expect(data.descriptionId).assertLarger(0); expect(data.formEnabled).assertEqual(false); expect(data.iconId).assertLarger(0); - except(data.labelId).assertLarger(0); + expect(data.labelId).assertLarger(0); expect(data.subType).assertEqual(0); - except(data.enabled).assertEqual(true); + expect(data.enabled).assertEqual(true); expect(data.readPermission).assertEqual(""); expect(data.writePermission).assertEqual(""); expect(data.targetAbility).assertEqual(""); expect(data.theme).assertEqual(""); - expect(data.metaData).assertEqual([]); - expect(data.metadata).assertEqual([]); + expect(data.metaData.length).assertEqual(0); + expect(data.metadata.length).assertEqual(0); checkApplicationInfo(data.applicationInfo); console.log("---checkAbilityInfo_other End--- "); } @@ -233,10 +233,10 @@ export default function actsBmsJsUnPermissionTest() { expect(info.supportedModes).assertEqual(0); expect(info.process).assertEqual(""); expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"); - expect(info.metaData).expect({}); - expect(info.metadata).expect({}); - expect(info.enabled).expect(true); - expect(info.flags).expect(0); + expect(JSON.stringify(info.metadata)).assertEqual("{}"); + expect(JSON.stringify(info.metadata)).assertEqual("{}"); + expect(info.enabled).assertEqual(true); + expect(info.flags).assertEqual(0); expect(info.uid).assertLarger(0); expect(info.entityType).assertEqual("unspecified"); expect(info.removable).assertEqual(true); diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetabilityInfo.test.ets b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetabilityInfo.test.ets index 4170948ff09e5b4acfcd90c4aaf905f6c49aa81d..1b1a27b644870a18a0f1831893ab6b364d39b62e 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetabilityInfo.test.ets +++ b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetabilityInfo.test.ets @@ -298,15 +298,15 @@ export default function GetabilityInfo() { expect(data.descriptionId).assertLarger(0); expect(data.formEnabled).assertEqual(false); expect(data.iconId).assertLarger(0); - except(data.labelId).assertLarger(0); + expect(data.labelId).assertLarger(0); expect(data.subType).assertEqual(0); - except(data.enabled).assertEqual(true); + expect(data.enabled).assertEqual(true); expect(data.readPermission).assertEqual(""); expect(data.writePermission).assertEqual(""); expect(data.targetAbility).assertEqual(""); expect(data.theme).assertEqual(""); - expect(data.metaData).assertEqual([]); - expect(data.metadata).assertEqual([]); + expect(data.metaData.length).assertEqual(0); + expect(data.metadata.length).assertEqual(0); checkApplicationInfo_other(data.applicationInfo); console.log("---checkAbilityInfo_other End--- "); } @@ -321,15 +321,15 @@ export default function GetabilityInfo() { expect(info.iconId > 0).assertTrue(); expect(info.label).assertEqual("$string:app_name"); expect(info.labelId > 0).assertTrue(); - expect(info.systemApp).assertEqual(true); - expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.ohos.acecollaboration/com.ohos.acecollaboration"); + expect(info.systemApp).assertEqual(false); + expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"); expect(info.supportedModes).assertEqual(0); expect(info.process).assertEqual(""); - expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.ohos.acecollaboration/com.ohos.acecollaboration"); - expect(info.metaData).expect({}); - expect(info.metadata).expect({}); - expect(info.enabled).expect(true); - expect(info.flags).expect(0); + expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"); + expect(JSON.stringify(info.metaData)).assertEqual("{}"); + expect(JSON.stringify(info.metadata)).assertEqual("{}"); + expect(info.enabled).assertEqual(true); + expect(info.flags).assertEqual(0); expect(info.uid).assertLarger(0); expect(info.entityType).assertEqual("unspecified"); expect(info.removable).assertEqual(true); diff --git a/appexecfwk/zlib/actszipfileandunzipfiletest/entry/src/main/js/test/actszipfileandunzipfiletest.test.js b/appexecfwk/zlib/actszipfileandunzipfiletest/entry/src/main/js/test/actszipfileandunzipfiletest.test.js index 7e0dfd256151a2f772d63ad981aa912b3948019b..7011d478a8edb0fe4d8667878dfabbbaba21e0e1 100644 --- a/appexecfwk/zlib/actszipfileandunzipfiletest/entry/src/main/js/test/actszipfileandunzipfiletest.test.js +++ b/appexecfwk/zlib/actszipfileandunzipfiletest/entry/src/main/js/test/actszipfileandunzipfiletest.test.js @@ -122,7 +122,7 @@ it('ACTS_ZipFile_0300', 0, async function (done) { /* * @tc.number: ACTS_ZipFile_0400 * @tc.name: zipFile -* @tc.desc: The ouput file is a directory that does not exist +* @tc.desc: The output file is a directory that does not exist */ it('ACTS_ZipFile_0400', 0, async function (done) { console.log("==================ACTS_ZipFile_0400 start=================="); diff --git a/appexecfwk/zlib/actszlibtest/ActsZlibTest.cpp b/appexecfwk/zlib/actszlibtest/ActsZlibTest.cpp index c8b9bbc8949f0199066fdce95f2013ced8ba4585..ac881a1a69aa378300920a2f24a2cc508d1cc994 100644 --- a/appexecfwk/zlib/actszlibtest/ActsZlibTest.cpp +++ b/appexecfwk/zlib/actszlibtest/ActsZlibTest.cpp @@ -455,7 +455,7 @@ HWTEST_F(ActsZlibTest, ActsZlibTestSync, Function | MediumTest | Level2) inflateSync(&d_stream); inflate(&d_stream, Z_FINISH); inflateEnd(&d_stream); - printf("after inflateSync: hel%s\n", reinterpret_cast(uncompr)); + printf("after inflateSync: help%s\n", reinterpret_cast(uncompr)); free(compr); free(uncompr); }