@@ -5,7 +5,7 @@ var Executor = require('./test/test_util').Executor;
55
66var passingTests = [
77 'node built/cli.js spec/basicConf.js' ,
8- // 'node built/cli.js spec/basicConf.js --useBlockingProxy',
8+ 'node built/cli.js spec/basicConf.js --useBlockingProxy' ,
99 'node built/cli.js spec/multiConf.js' ,
1010 'node built/cli.js spec/altRootConf.js' ,
1111 'node built/cli.js spec/inferRootConf.js' ,
@@ -21,7 +21,7 @@ var passingTests = [
2121 'node built/cli.js spec/suitesConf.js --suite okmany' ,
2222 'node built/cli.js spec/suitesConf.js --suite okspec' ,
2323 'node built/cli.js spec/suitesConf.js --suite okmany,okspec' ,
24- // 'node built/cli.js spec/plugins/smokeConf.js',
24+ 'node built/cli.js spec/plugins/smokeConf.js' ,
2525 'node built/cli.js spec/plugins/multiPluginConf.js' ,
2626 'node built/cli.js spec/plugins/jasminePostTestConf.js' ,
2727 'node built/cli.js spec/plugins/mochaPostTestConf.js' ,
@@ -47,15 +47,15 @@ var passingTests = [
4747 // // Interactive Element Explorer tasks
4848 // 'node scripts/interactive_tests/interactive_test.js',
4949 // 'node scripts/interactive_tests/with_base_url.js',
50- // // Unit tests
51- // 'node node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=scripts/unit_test.json',
52- // // Dependency tests
53- // 'node node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=scripts/dependency_test.json',
54- // // Typings tests
55- // 'node spec/install/test.js'
50+ // Unit tests
51+ 'node node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=scripts/unit_test.json' ,
52+ // Dependency tests
53+ 'node node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=scripts/dependency_test.json' ,
54+ // Typings tests
55+ 'node spec/install/test.js'
5656] ;
5757
58- var executor = new Executor ( ) ;
58+ const executor = new Executor ( ) ;
5959
6060passingTests . forEach ( function ( passing_test ) {
6161 executor . addCommandlineTest ( passing_test )
@@ -67,64 +67,65 @@ passingTests.forEach(function(passing_test) {
6767 *************************/
6868
6969// assert stacktrace shows line of failure
70- // executor.addCommandlineTest('node built/cli.js spec/errorTest/singleFailureConf.js')
71- // .expectExitCode(1)
72- // .expectErrors({
73- // stackTrace: 'single_failure_spec1.js:5:32'
74- // });
75-
76- // // assert timeout works
77- // executor.addCommandlineTest('node built/cli.js spec/errorTest/timeoutConf.js')
78- // .expectExitCode(1)
79- // .expectErrors({
80- // message: 'Timeout - Async callback was not invoked within timeout ' +
81- // 'specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.'
82- // })
83- // .expectTestDuration(0, 1000);
84-
85- // executor.addCommandlineTest('node built/cli.js spec/errorTest/afterLaunchChangesExitCodeConf.js')
86- // .expectExitCode(11)
87- // .expectErrors({
88- // message: 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.'
89- // });
90-
91- // executor.addCommandlineTest('node built/cli.js spec/errorTest/multiFailureConf.js')
92- // .expectExitCode(1)
93- // .expectErrors([{
94- // message: 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.',
95- // stacktrace: 'single_failure_spec1.js:5:32'
96- // }, {
97- // message: 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.',
98- // stacktrace: 'single_failure_spec2.js:5:32'
99- // }]);
100-
101- // executor.addCommandlineTest('node built/cli.js spec/errorTest/shardedFailureConf.js')
102- // .expectExitCode(1)
103- // .expectErrors([{
104- // message: 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.',
105- // stacktrace: 'single_failure_spec1.js:5:32'
106- // }, {
107- // message: 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.',
108- // stacktrace: 'single_failure_spec2.js:5:32'
109- // }]);
110-
111- // executor.addCommandlineTest('node built/cli.js spec/errorTest/mochaFailureConf.js')
112- // .expectExitCode(1)
113- // .expectErrors([{
114- // message: 'expected \'My AngularJS App\' to equal \'INTENTIONALLY INCORRECT\'',
115- // stacktrace: 'mocha_failure_spec.js:11:20'
116- // }]);
117-
118- // executor.addCommandlineTest('node built/cli.js spec/errorTest/pluginsFailingConf.js')
119- // .expectExitCode(1)
120- // .expectErrors([
121- // {message: 'Expected true to be false'},
122- // {message: 'from setup'},
123- // {message: 'from postTest passing'},
124- // {message: 'from postTest failing'},
125- // {message: 'from teardown'}
126- // ]);
127-
70+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/singleFailureConf.js' )
71+ . expectExitCode ( 1 )
72+ . expectErrors ( {
73+ stackTrace : 'single_failure_spec1.js:5:38'
74+ } ) ;
75+
76+ // assert timeout works
77+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/timeoutConf.js' )
78+ . expectExitCode ( 1 )
79+ . expectErrors ( {
80+ message : 'Timeout - Async callback was not invoked within timeout ' +
81+ 'specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.'
82+ } )
83+ . expectTestDuration ( 0 , 1000 ) ;
84+
85+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/afterLaunchChangesExitCodeConf.js' )
86+ . expectExitCode ( 11 )
87+ . expectErrors ( {
88+ message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.'
89+ } ) ;
90+
91+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/multiFailureConf.js' )
92+ . expectExitCode ( 1 )
93+ . expectErrors ( [ {
94+ message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
95+ stacktrace : 'single_failure_spec1.js:5:32'
96+ } , {
97+ message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
98+ stacktrace : 'single_failure_spec2.js:5:32'
99+ } ] ) ;
100+
101+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/shardedFailureConf.js' )
102+ . expectExitCode ( 1 )
103+ . expectErrors ( [ {
104+ message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
105+ stacktrace : 'single_failure_spec1.js:5:32'
106+ } , {
107+ message : 'Expected \'Hiya\' to equal \'INTENTIONALLY INCORRECT\'.' ,
108+ stacktrace : 'single_failure_spec2.js:5:32'
109+ } ] ) ;
110+
111+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/mochaFailureConf.js' )
112+ . expectExitCode ( 1 )
113+ . expectErrors ( [ {
114+ message : 'expected \'My AngularJS App\' to equal \'INTENTIONALLY INCORRECT\'' ,
115+ stacktrace : 'mocha_failure_spec.js:11:20'
116+ } ] ) ;
117+
118+ executor . addCommandlineTest ( 'node built/cli.js spec/errorTest/pluginsFailingConf.js' )
119+ . expectExitCode ( 1 )
120+ . expectErrors ( [
121+ { message : 'Expected true to be false' } ,
122+ { message : 'from setup' } ,
123+ { message : 'from postTest passing' } ,
124+ { message : 'from postTest failing' } ,
125+ { message : 'from teardown' }
126+ ] ) ;
127+
128+ // TODO(selenium4): turn these on when we figure out the correct error message handling.
128129// executor.addCommandlineTest('node built/cli.js spec/errorTest/slowHttpAndTimeoutConf.js')
129130// .expectExitCode(1)
130131// .expectErrors([
@@ -135,6 +136,7 @@ passingTests.forEach(function(passing_test) {
135136// '* }' }
136137// ]);
137138
139+ // TODO(selenium4): turn these on when we figure out the correct error message handling.
138140// executor.addCommandlineTest('node built/cli.js spec/errorTest/slowHttpAndTimeoutConf.js ' +
139141// '--untrackOutstandingTimeouts true')
140142// .expectExitCode(1)
@@ -144,6 +146,7 @@ passingTests.forEach(function(passing_test) {
144146// 'Locator: by.binding\\(\\"slowAngularTimeoutStatus\\"\\)$'}
145147// ]);
146148
149+ // TODO(selenium4): turn these on when we figure out the correct error message handling.
147150// executor.addCommandlineTest('node built/cli.js spec/angular2TimeoutConf.js')
148151// .expectExitCode(1)
149152// .expectErrors([
0 commit comments