提交 3a5620a0 编写于 作者: WOSHIMAHAIFENG's avatar WOSHIMAHAIFENG

Merge branch 'alpha-file' into 'alpha'

修改file 测试失败

See merge request !24
......@@ -822,20 +822,21 @@ describe('ExtApi-FileManagerTest', () => {
expect(statsRet.length).toEqual(1)
expect(statsRet[0].path).toMatch(new RegExp('.*/a/1.txt$'))
expect(statsRet[0].stats.size).toEqual(69)
if (isAndroid()) {
// 写入一个文件
await page.setData({
statsRet: ''
})
btnStatFileButton = await page.$('#btn-stat-file-sync')
await btnStatFileButton.tap()
await isDone()
// 写入一个文件
await page.setData({
statsRet: ''
})
btnStatFileButton = await page.$('#btn-stat-file-sync')
await btnStatFileButton.tap()
await isDone()
// 读取单个文件信息
statsRet = await getData('statsRet')
expect(statsRet.length).toEqual(1)
expect(statsRet[0].path).toMatch(new RegExp('.*/a/1.txt$'))
expect(statsRet[0].stats.size).toEqual(69)
// 读取单个文件信息
statsRet = await getData('statsRet')
expect(statsRet.length).toEqual(1)
expect(statsRet[0].path).toMatch(new RegExp('.*/a/1.txt$'))
expect(statsRet[0].stats.size).toEqual(69)
}
/**
* 创建子目录和子目录文件,测试recursive参数
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册