@@ -38,15 +38,15 @@ const passingTests = [
38
38
'node built/cli.js spec/controlLockConf.js' ,
39
39
'node built/cli.js spec/customFramework.js' ,
40
40
'node built/cli.js spec/noGlobalsConf.js' ,
41
- // 'node built/cli.js spec/angular2Conf.js',
41
+ 'node built/cli.js spec/angular2Conf.js' ,
42
42
'node built/cli.js spec/hybridConf.js' ,
43
43
'node built/cli.js spec/built/noCFBasicConf.js' ,
44
44
'node built/cli.js spec/built/noCFBasicConf.js --useBlockingProxy' ,
45
45
'node built/cli.js spec/built/noCFPluginConf.js' ,
46
46
'node scripts/driverProviderAttachSession.js' ,
47
- // 'node scripts/errorTest.js',
48
- // // Unit tests
49
- // 'node node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=scripts/unit_test.json',
47
+ 'node scripts/errorTest.js' ,
48
+ // Unit tests
49
+ 'node node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=scripts/unit_test.json' ,
50
50
// Dependency tests
51
51
'node node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=scripts/dependency_test.json' ,
52
52
// Typings tests
@@ -68,7 +68,7 @@ passingTests.forEach((passing_test) => {
68
68
executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/singleFailureConf.js' )
69
69
. expectExitCode ( 1 )
70
70
. expectErrors ( {
71
- stackTrace : 'single_failure_spec1.js:5:32 '
71
+ stackTrace : 'single_failure_spec1.js:5:38 '
72
72
} ) ;
73
73
74
74
// assert timeout works
@@ -90,63 +90,63 @@ executor.addCommandlineTest('node built/cli.js spec/errorTest/multiFailureConf.j
90
90
. expectExitCode ( 1 )
91
91
. expectErrors ( [ {
92
92
message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
93
- stacktrace : 'single_failure_spec1.js:5:32 '
93
+ stacktrace : 'single_failure_spec1.js:5:38 '
94
94
} , {
95
95
message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
96
- stacktrace : 'single_failure_spec2.js:5:32 '
96
+ stacktrace : 'single_failure_spec2.js:5:38 '
97
97
} ] ) ;
98
98
99
99
executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/shardedFailureConf.js' )
100
100
. expectExitCode ( 1 )
101
101
. expectErrors ( [ {
102
102
message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
103
- stacktrace : 'single_failure_spec1.js:5:32 '
103
+ stacktrace : 'single_failure_spec1.js:5:38 '
104
104
} , {
105
105
message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
106
- stacktrace : 'single_failure_spec2.js:5:32 '
106
+ stacktrace : 'single_failure_spec2.js:5:38 '
107
107
} ] ) ;
108
108
109
109
executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/mochaFailureConf.js' )
110
110
. expectExitCode ( 1 )
111
111
. expectErrors ( [ {
112
112
message : 'expected \'My AngularJS App\' to equal \'INTENTIONALLY INCORRECT\'' ,
113
- stacktrace : 'mocha_failure_spec.js:11:20 '
113
+ stacktrace : 'mocha_failure_spec.js:11:41 '
114
114
} ] ) ;
115
115
116
- // executor.addCommandlineTest('node built/cli.js spec/errorTest/pluginsFailingConf.js')
117
- // .expectExitCode(1)
118
- // .expectErrors([
119
- // {message: 'Expected true to be false'},
120
- // {message: 'from setup'},
121
- // {message: 'from postTest passing'},
122
- // {message: 'from postTest failing'},
123
- // {message: 'from teardown'}
124
- // ]);
125
-
126
- // executor.addCommandlineTest('node built/cli.js spec/errorTest/slowHttpAndTimeoutConf.js')
127
- // .expectExitCode(1)
128
- // .expectErrors([
129
- // {message: 'The following tasks were pending[\\s\\S]*\\$http: slowcall'},
130
- // {message: 'The following tasks were pending:[\\s\\S]*' +
131
- // '- \\$timeout: function\\(\\) {[\\s\\S]*' +
132
- // '\\$scope\\.slowAngularTimeoutStatus = \'done\';[\\s\\S]' +
133
- // '* }' }
134
- // ]);
135
-
136
- // executor.addCommandlineTest('node built/cli.js spec/errorTest/slowHttpAndTimeoutConf.js ' +
137
- // '--untrackOutstandingTimeouts true')
138
- // .expectExitCode(1)
139
- // .expectErrors([
140
- // {message: 'The following tasks were pending[\\s\\S]*\\$http: slowcall'},
141
- // {message: 'While waiting for element with locator - ' +
142
- // 'Locator: by.binding\\(\\"slowAngularTimeoutStatus\\"\\)$'}
143
- // ]);
144
-
145
- // executor.addCommandlineTest('node built/cli.js spec/angular2TimeoutConf.js')
146
- // .expectExitCode(1)
147
- // .expectErrors([
148
- // {message: 'Timed out waiting for asynchronous Angular tasks to finish'},
149
- // ]);
116
+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/pluginsFailingConf.js' )
117
+ . expectExitCode ( 1 )
118
+ . expectErrors ( [
119
+ { message : 'Expected true to be false' } ,
120
+ { message : 'from setup' } ,
121
+ { message : 'from postTest passing' } ,
122
+ { message : 'from postTest failing' } ,
123
+ { message : 'from teardown' }
124
+ ] ) ;
125
+
126
+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/slowHttpAndTimeoutConf.js' )
127
+ . expectExitCode ( 1 )
128
+ . expectErrors ( [
129
+ { message : 'The following tasks were pending[\\s\\S]*\\$http: slowcall' } ,
130
+ { message : 'The following tasks were pending:[\\s\\S]*' +
131
+ '- \\$timeout: function\\(\\) {[\\s\\S]*' +
132
+ '\\$scope\\.slowAngularTimeoutStatus = \'done\';[\\s\\S]' +
133
+ '*}' }
134
+ ] ) ;
135
+
136
+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/slowHttpAndTimeoutConf.js ' +
137
+ '--untrackOutstandingTimeouts true' )
138
+ . expectExitCode ( 1 )
139
+ . expectErrors ( [
140
+ { message : 'The following tasks were pending[\\s\\S]*\\$http: slowcall' } ,
141
+ { message : 'While waiting for element with locator - ' +
142
+ 'Locator: by.binding\\(\\"slowAngularTimeoutStatus\\"\\)$' }
143
+ ] ) ;
144
+
145
+ executor . addCommandlineTest ( 'node built/cli.js spec/angular2TimeoutConf.js' )
146
+ . expectExitCode ( 1 )
147
+ . expectErrors ( [
148
+ { message : 'Timed out waiting for asynchronous Angular tasks to finish' } ,
149
+ ] ) ;
150
150
151
151
// If we're running on CircleCI, save stdout and stderr from the test run to a log file.
152
152
if ( process . env [ 'CIRCLE_ARTIFACTS' ] ) {
0 commit comments