提交 9a0378c5 编写于 作者: Q qinliwen

<修改medialibrary xts>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 2a7ad245
......@@ -40,6 +40,9 @@ function checkAttrs(done, asset, tNum) {
done();
}
}
function sleep(time){
for (let t = Date.now(); Date.now() - t <= time;);
}
describe('fileAsset2.test.js', async function () {
let fileKeyObj = mediaLibrary.FileKey;
......@@ -207,7 +210,7 @@ describe('fileAsset2.test.js', async function () {
asset.orientation = neworientation;
const id = asset.id;
await asset.commitModify();
sleep(1000);
const fetchFileResult2 = await media.getFileAssets(imagesfetchOp);
const dataList = await fetchFileResult2.getAllObject();
let passed = false;
......
......@@ -40,6 +40,9 @@ function checkAttrs(done, asset, tNum) {
done();
}
}
function sleep(time){
for (let t = Date.now(); Date.now() - t <= time;);
}
describe('fileAssetPromise2.test.js', async function () {
let fileKeyObj = mediaLibrary.FileKey;
......@@ -207,7 +210,7 @@ describe('fileAssetPromise2.test.js', async function () {
asset.orientation = neworientation;
const id = asset.id;
await asset.commitModify();
sleep(1000);
const fetchFileResult2 = await media.getFileAssets(imagesfetchOp);
const dataList = await fetchFileResult2.getAllObject();
let passed = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册