提交 6465e8d9 编写于 作者: Z zhangxingxia

update filemanager xts

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 2db95ecb
...@@ -299,6 +299,7 @@ describe("filemanager_test", function () { ...@@ -299,6 +299,7 @@ describe("filemanager_test", function () {
expect(null).assertFail(); expect(null).assertFail();
}).catch(e => { }).catch(e => {
console.log("filemanager_test_createfile_async_002 e " + e); console.log("filemanager_test_createfile_async_002 e " + e);
expect(e.message == "Operation not permitted").assertTrue();
}) })
} catch (error) { } catch (error) {
console.log("filemanager_test_createfile_async_002 for " + error); console.log("filemanager_test_createfile_async_002 for " + error);
...@@ -322,12 +323,12 @@ describe("filemanager_test", function () { ...@@ -322,12 +323,12 @@ describe("filemanager_test", function () {
.then(uri => { .then(uri => {
console.log("filemanager_test_createfile_async_003 uri " + uri); console.log("filemanager_test_createfile_async_003 uri " + uri);
expect(null).assertFail(); expect(null).assertFail();
}).catch(e => { }).catch(error => {
console.log("filemanager_test_createfile_async_003 e " + e); console.log("filemanager_test_createfile_async_003 e " + error);
expect(error.message == "No such file or directory").assertTrue();
}) })
} catch (error) { } catch (error) {
console.log("filemanager_test_createfile_async_003 has failed for " + error); console.log("filemanager_test_createfile_async_003 has failed for " + error);
expect(error.message == "No such file or directory").assertTrue();
} }
done(); done();
}); });
...@@ -352,6 +353,7 @@ describe("filemanager_test", function () { ...@@ -352,6 +353,7 @@ describe("filemanager_test", function () {
}) })
} catch (error) { } catch (error) {
console.log("filemanager_test_createfile_async_004 has failed for " + error); console.log("filemanager_test_createfile_async_004 has failed for " + error);
expect(error.toString().indexOf("Number of arguments unmatched") !=-1).assertTrue();
} }
done(); done();
}); });
...@@ -371,8 +373,9 @@ describe("filemanager_test", function () { ...@@ -371,8 +373,9 @@ describe("filemanager_test", function () {
.then(uri => { .then(uri => {
console.log("filemanager_test_createfile_async_005 uri " + uri); console.log("filemanager_test_createfile_async_005 uri " + uri);
expect(null).assertFail(); expect(null).assertFail();
}).catch(e => { }).catch(error => {
console.log("filemanager_test_createfile_async_005 e " + e); console.log("filemanager_test_createfile_async_005 e " + error);
expect(error.message == "No such file or directory").assertTrue();
}) })
} catch (error) { } catch (error) {
console.log("filemanager_test_createfile_async_005 has failed for " + error); console.log("filemanager_test_createfile_async_005 has failed for " + error);
...@@ -396,12 +399,12 @@ describe("filemanager_test", function () { ...@@ -396,12 +399,12 @@ describe("filemanager_test", function () {
.then(uri => { .then(uri => {
console.log("filemanager_test_createfile_async_006 uri " + uri); console.log("filemanager_test_createfile_async_006 uri " + uri);
expect(null).assertFail(); expect(null).assertFail();
}).catch(e => { }).catch(error => {
console.log("filemanager_test_createfile_async_006 e " + e); console.log("filemanager_test_createfile_async_006 e " + error);
expect(error.message == "No such file or directory").assertTrue();
}) })
} catch (error) { } catch (error) {
console.log("filemanager_test_createfile_async_006 has failed for " + error); console.log("filemanager_test_createfile_async_006 has failed for " + error);
expect(error.message == "No such file or directory").assertTrue();
} }
done(); done();
}); });
...@@ -421,12 +424,12 @@ describe("filemanager_test", function () { ...@@ -421,12 +424,12 @@ describe("filemanager_test", function () {
.then(uri => { .then(uri => {
console.log("filemanager_test_createfile_async_007 uri " + uri); console.log("filemanager_test_createfile_async_007 uri " + uri);
expect(null).assertFail(); expect(null).assertFail();
}).catch(e => { }).catch(error => {
console.log("filemanager_test_createfile_async_007 e " + e); console.log("filemanager_test_createfile_async_007 e " + error);
expect(error.message == "No such file or directory").assertTrue();
}) })
} catch (error) { } catch (error) {
console.log("filemanager_test_createfile_async_007 has failed for " + error); console.log("filemanager_test_createfile_async_007 has failed for " + error);
expect(error.message == "No such file or directory").assertTrue();
} }
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册