File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
after_close_previous_window_then_open_new Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var fs_extra = require('fs-extra');
6
6
var spawn = require ( 'child_process' ) . spawn ;
7
7
var result ;
8
8
9
- describe ( 'afterpp close previous window then open new' , function ( ) {
9
+ describe ( 'after close previous window then open new' , function ( ) {
10
10
after ( function ( ) {
11
11
fs_extra . remove ( './automatic_tests/after_close_previous_window_then_open_new/tmp' , function ( er ) {
12
12
if ( er ) throw er ;
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ var fs = require('fs');
5
5
var fs_extra = require ( 'fs-extra' ) ;
6
6
var results ;
7
7
describe ( 'crash dump' , function ( ) {
8
-
8
+ before ( function ( done ) {
9
+ fs . mkdirSync ( './automatic_tests/crash_dump/tmp' ) ;
10
+ done ( ) ;
11
+ } ) ;
12
+
9
13
after ( function ( ) {
10
- fs_extra . remove ( './automatic_tests/crash_dump/tmp' , function ( er ) {
14
+ fs_extra . remove ( './automatic_tests/crash_dump/tmp' , function ( er ) {
11
15
if ( er ) throw er ;
12
- } ) ;
16
+ } ) ;
13
17
} ) ;
14
18
15
19
describe ( 'crashBrowser()' , function ( ) {
@@ -20,8 +24,10 @@ describe('crash dump', function() {
20
24
appPath : path . join ( global . tests_dir , 'crash_dump' ) ,
21
25
args :[ 0 ] ,
22
26
end : function ( data , app ) {
23
- result = fs . readdirSync ( './automatic_tests/crash_dump/tmp' ) ;
24
- done ( ) ;
27
+ setTimeout ( function ( ) {
28
+ result = fs . readdirSync ( './automatic_tests/crash_dump/tmp' ) ;
29
+ done ( ) ;
30
+ } , 2000 ) ;
25
31
}
26
32
} ) ;
27
33
} ) ;
You can’t perform that action at this time.
0 commit comments