提交 1f15f0b1 编写于 作者: M mahaifeng

[filemanager]修改测试用例

上级 fe7c408e
...@@ -1421,7 +1421,7 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1421,7 +1421,7 @@ describe('ExtApi-FileManagerTest', () => {
await btnWrite.tap() await btnWrite.tap()
await isDone() await isDone()
let arrayBufferRes = await getData("arrayBufferRes") let arrayBufferRes = await getData("arrayBufferRes")
expect(bytesWritten).toEqual(21) expect(arrayBufferRes).toEqual(21)
}); });
it('testAppendFileBufferSync', async () => { it('testAppendFileBufferSync', async () => {
...@@ -1433,7 +1433,7 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1433,7 +1433,7 @@ describe('ExtApi-FileManagerTest', () => {
await btnWrite.tap() await btnWrite.tap()
await isDone() await isDone()
let arrayBufferRes = await getData("arrayBufferRes") let arrayBufferRes = await getData("arrayBufferRes")
expect(bytesWritten).toEqual(20) expect(arrayBufferRes).toEqual(20)
}); });
it('testWriteReadSyncBuffer', async () => { it('testWriteReadSyncBuffer', async () => {
...@@ -1445,7 +1445,7 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1445,7 +1445,7 @@ describe('ExtApi-FileManagerTest', () => {
await btnWrite.tap() await btnWrite.tap()
await isDone() await isDone()
let arrayBufferRes = await getData("arrayBufferRes") let arrayBufferRes = await getData("arrayBufferRes")
expect(bytesWritten).toEqual(1.11) expect(arrayBufferRes).toEqual(1.11)
}); });
it('testWriteReadBuffer', async () => { it('testWriteReadBuffer', async () => {
...@@ -1457,7 +1457,7 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1457,7 +1457,7 @@ describe('ExtApi-FileManagerTest', () => {
await btnWrite.tap() await btnWrite.tap()
await isDone() await isDone()
let arrayBufferRes = await getData("arrayBufferRes") let arrayBufferRes = await getData("arrayBufferRes")
expect(bytesWritten).toEqual(1.24) expect(arrayBufferRes).toEqual(1.24)
}); });
it('testWriteReadFileSyncBuffer', async () => { it('testWriteReadFileSyncBuffer', async () => {
...@@ -1469,7 +1469,7 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1469,7 +1469,7 @@ describe('ExtApi-FileManagerTest', () => {
await btnWrite.tap() await btnWrite.tap()
await isDone() await isDone()
let arrayBufferRes = await getData("arrayBufferRes") let arrayBufferRes = await getData("arrayBufferRes")
expect(bytesWritten).toEqual(1.333) expect(arrayBufferRes).toEqual(1.333)
}); });
it('testReadFileBuffer', async () => { it('testReadFileBuffer', async () => {
...@@ -1481,6 +1481,6 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1481,6 +1481,6 @@ describe('ExtApi-FileManagerTest', () => {
await btnWrite.tap() await btnWrite.tap()
await isDone() await isDone()
let arrayBufferRes = await getData("arrayBufferRes") let arrayBufferRes = await getData("arrayBufferRes")
expect(bytesWritten).toEqual(1.2222222) expect(arrayBufferRes).toEqual(1.2222222)
}); });
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册