提交 2897719a 编写于 作者: S sunshenshen

Modification of SUB_MEDIA_MEDIALIBRARY_ASSET_NETWORKID_PROMISE_006

Signed-off-by: Nsunshenshen <sunshenshen@huawei.com>
上级 c7d89017
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Copyright (C) 2022-2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......@@ -187,11 +187,12 @@ export default function mediafetchoptionsPromise(abilityContext) {
};
try {
const fetchFileResult = await media.getFileAssets(currentFetchOps);
expect(false).assertTrue();
let count = await fetchFileResult.getCount();
expect(count == 0).assertTrue();
fetchFileResult.close();
done();
} catch (err) {
expect(true).assertTrue();
expect(false).assertTrue();
done();
}
} catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册