提交 7c51284b 编写于 作者: WOSHIMAHAIFENG's avatar WOSHIMAHAIFENG

Merge branch 'dev_file' into 'dev'

Dev file

See merge request !16
jest.setTimeout(30000);
const PAGE_PATH = '/pages/API/get-file-system-manager/get-file-system-manager' const PAGE_PATH = '/pages/API/get-file-system-manager/get-file-system-manager'
...@@ -1156,7 +1157,6 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1156,7 +1157,6 @@ describe('ExtApi-FileManagerTest', () => {
return return
} }
console.log('start saveFileSyncTest')
let globalTempPath = await getData('globalTempPath') let globalTempPath = await getData('globalTempPath')
let basePath = await getData('basePath') let basePath = await getData('basePath')
await page.setData({ await page.setData({
...@@ -1164,7 +1164,6 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1164,7 +1164,6 @@ describe('ExtApi-FileManagerTest', () => {
basePath: basePath basePath: basePath
}) })
await clearDir('') await clearDir('')
console.log('end saveFileSyncTest1')
await page.setData({ await page.setData({
logAble: false, logAble: false,
basePath: globalTempPath, basePath: globalTempPath,
...@@ -1174,18 +1173,15 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1174,18 +1173,15 @@ describe('ExtApi-FileManagerTest', () => {
accessFile: '2.txt' accessFile: '2.txt'
}) })
await createFile() await createFile()
console.log('end saveFileSyncTest2')
await page.setData({ await page.setData({
basePath: basePath, basePath: basePath,
writeFile: 'save/2.txt', writeFile: 'save/2.txt',
}) })
btnSaveFile = await page.$('#btn-save-file-sync') btnSaveFile = await page.$('#btn-save-file-sync')
await btnSaveFile.tap() await btnSaveFile.tap()
console.log('end saveFileSyncTest3')
let btnRemoveSavedFileRet = await page.$('#btn-remove-saved-file') let btnRemoveSavedFileRet = await page.$('#btn-remove-saved-file')
await btnRemoveSavedFileRet.tap() await btnRemoveSavedFileRet.tap()
await isDone() await isDone()
console.log('end saveFileSyncTest4')
let removeSavedFileRet = await getData("removeSavedFileRet") let removeSavedFileRet = await getData("removeSavedFileRet")
expect(removeSavedFileRet).toEqual('removeSavedFile:ok') expect(removeSavedFileRet).toEqual('removeSavedFile:ok')
...@@ -1193,7 +1189,6 @@ describe('ExtApi-FileManagerTest', () => { ...@@ -1193,7 +1189,6 @@ describe('ExtApi-FileManagerTest', () => {
removeSavedFileRet: '' removeSavedFileRet: ''
}) })
await clearDir('') await clearDir('')
console.log('end saveFileSyncTest')
}); });
it('getSavedFileListTest', it('getSavedFileListTest',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册