@@ -13,98 +13,99 @@ export interface ICreateAppFn {
1313export function setup ( userDataDir : string , createApp : ICreateAppFn ) {
1414
1515 describe ( 'Data Migration' , ( ) => {
16+
1617 afterEach ( async function ( ) {
1718 await new Promise ( ( c , e ) => rimraf ( userDataDir , { maxBusyTries : 10 } , err => err ? e ( err ) : c ( ) ) ) ;
1819 } ) ;
1920
20- it ( 'checks if the Untitled file is restored migrating from stable to latest' , async function ( ) {
21- const stableApp = createApp ( Quality . Stable ) ;
21+ // it('checks if the Untitled file is restored migrating from stable to latest', async function () {
22+ // const stableApp = createApp(Quality.Stable);
2223
23- if ( ! stableApp ) {
24- this . skip ( ) ;
25- return ;
26- }
24+ // if (!stableApp) {
25+ // this.skip();
26+ // return;
27+ // }
2728
28- await stableApp . start ( ) ;
29+ // await stableApp.start();
2930
30- const textToType = 'Very dirty file' ;
31+ // const textToType = 'Very dirty file';
3132
32- await stableApp . workbench . editors . newUntitledFile ( ) ;
33- await stableApp . workbench . editor . waitForTypeInEditor ( 'Untitled-1' , textToType ) ;
33+ // await stableApp.workbench.editors.newUntitledFile();
34+ // await stableApp.workbench.editor.waitForTypeInEditor('Untitled-1', textToType);
3435
35- await stableApp . stop ( ) ;
36- await new Promise ( c => setTimeout ( c , 500 ) ) ; // wait until all resources are released (e.g. locked local storage)
36+ // await stableApp.stop();
37+ // await new Promise(c => setTimeout(c, 500)); // wait until all resources are released (e.g. locked local storage)
3738
38- // Checking latest version for the restored state
39- const app = createApp ( Quality . Insiders ) ;
39+ // // Checking latest version for the restored state
40+ // const app = createApp(Quality.Insiders);
4041
41- await app . start ( false ) ;
42+ // await app.start(false);
4243
43- await app . workbench . editors . waitForActiveTab ( 'Untitled-1' , true ) ;
44- await app . workbench . editor . waitForEditorContents ( 'Untitled-1' , c => c . indexOf ( textToType ) > - 1 ) ;
44+ // await app.workbench.editors.waitForActiveTab('Untitled-1', true);
45+ // await app.workbench.editor.waitForEditorContents('Untitled-1', c => c.indexOf(textToType) > -1);
4546
46- await app . stop ( ) ;
47- } ) ;
47+ // await app.stop();
48+ // });
4849
49- it ( 'checks if the newly created dirty file is restored migrating from stable to latest' , async function ( ) {
50- const stableApp = createApp ( Quality . Stable ) ;
50+ // it('checks if the newly created dirty file is restored migrating from stable to latest', async function () {
51+ // const stableApp = createApp(Quality.Stable);
5152
52- if ( ! stableApp ) {
53- this . skip ( ) ;
54- return ;
55- }
53+ // if (!stableApp) {
54+ // this.skip();
55+ // return;
56+ // }
5657
57- await stableApp . start ( ) ;
58+ // await stableApp.start();
5859
59- const fileName = 'app.js' ;
60- const textPart = 'This is going to be an unsaved file' ;
60+ // const fileName = 'app.js';
61+ // const textPart = 'This is going to be an unsaved file';
6162
62- await stableApp . workbench . quickopen . openFile ( fileName ) ;
63+ // await stableApp.workbench.quickopen.openFile(fileName);
6364
64- await stableApp . workbench . editor . waitForTypeInEditor ( fileName , textPart ) ;
65+ // await stableApp.workbench.editor.waitForTypeInEditor(fileName, textPart);
6566
66- await stableApp . stop ( ) ;
67- await new Promise ( c => setTimeout ( c , 500 ) ) ; // wait until all resources are released (e.g. locked local storage)
67+ // await stableApp.stop();
68+ // await new Promise(c => setTimeout(c, 500)); // wait until all resources are released (e.g. locked local storage)
6869
69- // Checking latest version for the restored state
70- const app = createApp ( Quality . Insiders ) ;
70+ // // Checking latest version for the restored state
71+ // const app = createApp(Quality.Insiders);
7172
72- await app . start ( false ) ;
73+ // await app.start(false);
7374
74- await app . workbench . editors . waitForActiveTab ( fileName ) ;
75- await app . workbench . editor . waitForEditorContents ( fileName , c => c . indexOf ( textPart ) > - 1 ) ;
75+ // await app.workbench.editors.waitForActiveTab(fileName);
76+ // await app.workbench.editor.waitForEditorContents(fileName, c => c.indexOf(textPart) > -1);
7677
77- await app . stop ( ) ;
78- } ) ;
78+ // await app.stop();
79+ // });
7980
80- it ( 'checks if opened tabs are restored migrating from stable to latest' , async function ( ) {
81- const stableApp = createApp ( Quality . Stable ) ;
81+ // it('checks if opened tabs are restored migrating from stable to latest', async function () {
82+ // const stableApp = createApp(Quality.Stable);
8283
83- if ( ! stableApp ) {
84- this . skip ( ) ;
85- return ;
86- }
84+ // if (!stableApp) {
85+ // this.skip();
86+ // return;
87+ // }
8788
88- await stableApp . start ( ) ;
89+ // await stableApp.start();
8990
90- const fileName1 = 'app.js' , fileName2 = 'jsconfig.json' , fileName3 = 'readme.md' ;
91+ // const fileName1 = 'app.js', fileName2 = 'jsconfig.json', fileName3 = 'readme.md';
9192
92- await stableApp . workbench . quickopen . openFile ( fileName1 ) ;
93- await stableApp . workbench . runCommand ( 'View: Keep Editor' ) ;
94- await stableApp . workbench . quickopen . openFile ( fileName2 ) ;
95- await stableApp . workbench . runCommand ( 'View: Keep Editor' ) ;
96- await stableApp . workbench . quickopen . openFile ( fileName3 ) ;
97- await stableApp . stop ( ) ;
93+ // await stableApp.workbench.quickopen.openFile(fileName1);
94+ // await stableApp.workbench.runCommand('View: Keep Editor');
95+ // await stableApp.workbench.quickopen.openFile(fileName2);
96+ // await stableApp.workbench.runCommand('View: Keep Editor');
97+ // await stableApp.workbench.quickopen.openFile(fileName3);
98+ // await stableApp.stop();
9899
99- const app = createApp ( Quality . Insiders ) ;
100+ // const app = createApp(Quality.Insiders);
100101
101- await app . start ( false ) ;
102+ // await app.start(false);
102103
103- await app . workbench . editors . waitForTab ( fileName1 ) ;
104- await app . workbench . editors . waitForTab ( fileName2 ) ;
105- await app . workbench . editors . waitForTab ( fileName3 ) ;
104+ // await app.workbench.editors.waitForTab(fileName1);
105+ // await app.workbench.editors.waitForTab(fileName2);
106+ // await app.workbench.editors.waitForTab(fileName3);
106107
107- await app . stop ( ) ;
108- } ) ;
108+ // await app.stop();
109+ // });
109110 } ) ;
110111}
0 commit comments