File tree Expand file tree Collapse file tree 5 files changed +21
-21
lines changed
javascript/selenium-webdriver/test Expand file tree Collapse file tree 5 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ test.suite(
6060 it ( 'uses SE_CHROMEDRIVER environment variable when set' , function ( ) {
6161 const testPath = '/custom/path/to/chromedriver'
6262 process . env . SE_CHROMEDRIVER = testPath
63-
63+
6464 const serviceBuilder = new chrome . ServiceBuilder ( )
6565 const service = serviceBuilder . build ( )
6666 assert . strictEqual ( service . getExecutable ( ) , testPath )
@@ -69,17 +69,17 @@ test.suite(
6969 it ( 'explicit path overrides environment variable' , function ( ) {
7070 const envPath = '/env/path/to/chromedriver'
7171 const explicitPath = '/explicit/path/to/chromedriver'
72-
72+
7373 process . env . SE_CHROMEDRIVER = envPath
7474 const serviceBuilder = new chrome . ServiceBuilder ( explicitPath )
7575 const service = serviceBuilder . build ( )
76-
76+
7777 assert . strictEqual ( service . getExecutable ( ) , explicitPath )
7878 } )
7979
8080 it ( 'falls back to default behavior when environment variable is not set' , function ( ) {
8181 delete process . env . SE_CHROMEDRIVER
82-
82+
8383 const serviceBuilder = new chrome . ServiceBuilder ( )
8484 const service = serviceBuilder . build ( )
8585 // Should be null/undefined when no explicit path and no env var
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ test.suite(
5858 it ( 'uses SE_EDGEDRIVER environment variable when set' , function ( ) {
5959 const testPath = '/custom/path/to/edgedriver'
6060 process . env . SE_EDGEDRIVER = testPath
61-
61+
6262 const serviceBuilder = new edge . ServiceBuilder ( )
6363 const service = serviceBuilder . build ( )
6464 assert . strictEqual ( service . getExecutable ( ) , testPath )
@@ -67,17 +67,17 @@ test.suite(
6767 it ( 'explicit path overrides environment variable' , function ( ) {
6868 const envPath = '/env/path/to/edgedriver'
6969 const explicitPath = '/explicit/path/to/edgedriver'
70-
70+
7171 process . env . SE_EDGEDRIVER = envPath
7272 const serviceBuilder = new edge . ServiceBuilder ( explicitPath )
7373 const service = serviceBuilder . build ( )
74-
74+
7575 assert . strictEqual ( service . getExecutable ( ) , explicitPath )
7676 } )
7777
7878 it ( 'falls back to default behavior when environment variable is not set' , function ( ) {
7979 delete process . env . SE_EDGEDRIVER
80-
80+
8181 const serviceBuilder = new edge . ServiceBuilder ( )
8282 const service = serviceBuilder . build ( )
8383 // Should be null/undefined when no explicit path and no env var
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ test.suite(
5858 it ( 'uses SE_GECKODRIVER environment variable when set' , function ( ) {
5959 const testPath = '/custom/path/to/geckodriver'
6060 process . env . SE_GECKODRIVER = testPath
61-
61+
6262 const serviceBuilder = new firefox . ServiceBuilder ( )
6363 const service = serviceBuilder . build ( )
6464 assert . strictEqual ( service . getExecutable ( ) , testPath )
@@ -67,17 +67,17 @@ test.suite(
6767 it ( 'explicit path overrides environment variable' , function ( ) {
6868 const envPath = '/env/path/to/geckodriver'
6969 const explicitPath = '/explicit/path/to/geckodriver'
70-
70+
7171 process . env . SE_GECKODRIVER = envPath
7272 const serviceBuilder = new firefox . ServiceBuilder ( explicitPath )
7373 const service = serviceBuilder . build ( )
74-
74+
7575 assert . strictEqual ( service . getExecutable ( ) , explicitPath )
7676 } )
7777
7878 it ( 'falls back to default behavior when environment variable is not set' , function ( ) {
7979 delete process . env . SE_GECKODRIVER
80-
80+
8181 const serviceBuilder = new firefox . ServiceBuilder ( )
8282 const service = serviceBuilder . build ( )
8383 // Should be null/undefined when no explicit path and no env var
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ test.suite(
3939 this . skip ( )
4040 return
4141 }
42-
42+
4343 service = new ie . ServiceBuilder ( ) . build ( )
4444 service . setExecutable ( getBinaryPaths ( new ie . Options ( ) ) . driverPath )
4545 let url = await service . start ( )
@@ -64,24 +64,24 @@ test.suite(
6464 it ( 'uses SE_IEDRIVER environment variable when set' , function ( ) {
6565 const testPath = '/custom/path/to/iedriver'
6666 process . env . SE_IEDRIVER = testPath
67-
67+
6868 const serviceBuilder = new ie . ServiceBuilder ( )
6969 assert . strictEqual ( serviceBuilder . getExecutable ( ) , testPath )
7070 } )
7171
7272 it ( 'explicit path overrides environment variable' , function ( ) {
7373 const envPath = '/env/path/to/iedriver'
7474 const explicitPath = '/explicit/path/to/iedriver'
75-
75+
7676 process . env . SE_IEDRIVER = envPath
7777 const serviceBuilder = new ie . ServiceBuilder ( explicitPath )
78-
78+
7979 assert . strictEqual ( serviceBuilder . getExecutable ( ) , explicitPath )
8080 } )
8181
8282 it ( 'falls back to default behavior when environment variable is not set' , function ( ) {
8383 delete process . env . SE_IEDRIVER
84-
84+
8585 const serviceBuilder = new ie . ServiceBuilder ( )
8686 // Should be null/undefined when no explicit path and no env var
8787 assert . ok ( ! serviceBuilder . getExecutable ( ) )
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ test.suite(
5757 it ( 'uses SE_SAFARIDRIVER environment variable when set' , function ( ) {
5858 const testPath = '/custom/path/to/safaridriver'
5959 process . env . SE_SAFARIDRIVER = testPath
60-
60+
6161 const serviceBuilder = new safari . ServiceBuilder ( )
6262 const service = serviceBuilder . build ( )
6363 assert . strictEqual ( service . getExecutable ( ) , testPath )
@@ -66,17 +66,17 @@ test.suite(
6666 it ( 'explicit path overrides environment variable' , function ( ) {
6767 const envPath = '/env/path/to/safaridriver'
6868 const explicitPath = '/explicit/path/to/safaridriver'
69-
69+
7070 process . env . SE_SAFARIDRIVER = envPath
7171 const serviceBuilder = new safari . ServiceBuilder ( explicitPath )
7272 const service = serviceBuilder . build ( )
73-
73+
7474 assert . strictEqual ( service . getExecutable ( ) , explicitPath )
7575 } )
7676
7777 it ( 'falls back to default behavior when environment variable is not set' , function ( ) {
7878 delete process . env . SE_SAFARIDRIVER
79-
79+
8080 const serviceBuilder = new safari . ServiceBuilder ( )
8181 const service = serviceBuilder . build ( )
8282 // Should be null/undefined when no explicit path and no env var
You can’t perform that action at this time.
0 commit comments