提交 50f2dbfe 编写于 作者: I inter515

修改metadata的value字段

Signed-off-by: Ninter515 <ry.renyi@huawei.com>
上级 45c3d17d
...@@ -340,7 +340,7 @@ export default function QueryExtensionAbilityInfos() { ...@@ -340,7 +340,7 @@ export default function QueryExtensionAbilityInfos() {
expect(data[0].readPermission).assertEqual(""); expect(data[0].readPermission).assertEqual("");
expect(data[0].writePermission).assertEqual(""); expect(data[0].writePermission).assertEqual("");
expect(data[0].metadata[0].name).assertEqual("ohos.extension.form"); expect(data[0].metadata[0].name).assertEqual("ohos.extension.form");
expect(data[0].metadata[0].value).assertEqual(""); expect(data[0].metadata[0].value).assertEqual("testExtensionAbilities");
expect(data[0].metadata[0].resource).assertEqual("$profile:form_config"); expect(data[0].metadata[0].resource).assertEqual("$profile:form_config");
}).catch(err => { }).catch(err => {
expect(err).assertFail(); expect(err).assertFail();
...@@ -367,7 +367,7 @@ export default function QueryExtensionAbilityInfos() { ...@@ -367,7 +367,7 @@ export default function QueryExtensionAbilityInfos() {
expect(data[0].readPermission).assertEqual(""); expect(data[0].readPermission).assertEqual("");
expect(data[0].writePermission).assertEqual(""); expect(data[0].writePermission).assertEqual("");
expect(data[0].metadata[0].name).assertEqual("ohos.extension.form"); expect(data[0].metadata[0].name).assertEqual("ohos.extension.form");
expect(data[0].metadata[0].value).assertEqual(""); expect(data[0].metadata[0].value).assertEqual("testExtensionAbilities");
expect(data[0].metadata[0].resource).assertEqual("$profile:form_config"); expect(data[0].metadata[0].resource).assertEqual("$profile:form_config");
done(); done();
}) })
...@@ -536,7 +536,7 @@ export default function QueryExtensionAbilityInfos() { ...@@ -536,7 +536,7 @@ export default function QueryExtensionAbilityInfos() {
expect(data[0].enabled).assertTrue(); expect(data[0].enabled).assertTrue();
expect(data[0].readPermission).assertEqual(""); expect(data[0].readPermission).assertEqual("");
expect(data[0].metadata[0].name).assertEqual("ohos.extension.form"); expect(data[0].metadata[0].name).assertEqual("ohos.extension.form");
expect(data[0].metadata[0].value).assertEqual(""); expect(data[0].metadata[0].value).assertEqual("testExtensionAbilities");
expect(data[0].metadata[0].resource).assertEqual("$profile:form_config"); expect(data[0].metadata[0].resource).assertEqual("$profile:form_config");
}).catch(err => { }).catch(err => {
expect(err).assertFail(); expect(err).assertFail();
...@@ -563,7 +563,7 @@ export default function QueryExtensionAbilityInfos() { ...@@ -563,7 +563,7 @@ export default function QueryExtensionAbilityInfos() {
expect(data[0].enabled).assertTrue(); expect(data[0].enabled).assertTrue();
expect(data[0].writePermission).assertEqual(""); expect(data[0].writePermission).assertEqual("");
expect(data[0].metadata[0].name).assertEqual("ohos.extension.form"); expect(data[0].metadata[0].name).assertEqual("ohos.extension.form");
expect(data[0].metadata[0].value).assertEqual(""); expect(data[0].metadata[0].value).assertEqual("testExtensionAbilities");
expect(data[0].metadata[0].resource).assertEqual("$profile:form_config"); expect(data[0].metadata[0].resource).assertEqual("$profile:form_config");
done(); done();
}) })
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import { describe, it, expect } from 'deccjsunit/index.ets'; import { describe, it, expect } from 'hypium/index';
import Utils from './Utils'; import Utils from './Utils';
import Bundle from '@ohos.bundle'; import Bundle from '@ohos.bundle';
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
"metadata": [ "metadata": [
{ {
"name": "ohos.extension.form", "name": "ohos.extension.form",
"value": "testExtensionAbilities",
"resource": "$profile:form_config" "resource": "$profile:form_config"
} }
], ],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册