Browse Source

Clean up assorted whitespace inconsistencies

Daniel Gempesaw 9 years ago
parent
commit
9a48430204
2 changed files with 14 additions and 14 deletions
  1. 3 3
      lib/Selenium/CanStartBinary.pm
  2. 11 11
      t/CanStartBinary.t

+ 3 - 3
lib/Selenium/CanStartBinary.pm

@@ -138,7 +138,7 @@ has '+port' => (
         if ($self->_real_binary) {
             if ($self->fixed_ports) {
                 return find_open_port($self->binary_port);
-			}
+            }
             else {
                 return find_open_port_above($self->binary_port);
             }
@@ -159,7 +159,7 @@ if found or a timeout is exceeded.
     my $driver2 = Selenium::Chrome->new( port => 1234 );
 
 The default behavior can be overridden. In this case, only the default
-or given binary_port and marionette_port are probed, without probing 
+or given binary_port and marionette_port are probed, without probing
 higher ports. This ensures that either the default or given port will be
 assigned, or no port will be assigned at all.
 
@@ -205,7 +205,7 @@ has 'marionette_port' => (
         else {
             if ($self->fixed_ports) {
                 return find_open_port($self->marionette_binary_port);
-			}
+            }
             else {
                 return find_open_port_above($self->marionette_binary_port);
             }

+ 11 - 11
t/CanStartBinary.t

@@ -84,22 +84,22 @@ FIREFOX: {
             ok(Selenium::CanStartBinary::probe_port($firefox->marionette_port),
                'the firefox binary is listening on its marionette port');
 
-            EXECUTE_SCRIPT: {
-                  $firefox->get("https://www.google.com");
+          EXECUTE_SCRIPT: {
+                $firefox->get("https://www.google.com");
 
-                  my $elem = $firefox->find_element('div', 'css');
-                  my $script_elem = $firefox->execute_script('return arguments[0]', $elem);
-                  isa_ok($script_elem, 'Selenium::Remote::WebElement', 'execute_script element return');
-                  is($elem->id, $script_elem->id, 'Sync script returns identical WebElement id');
+                my $elem = $firefox->find_element('div', 'css');
+                my $script_elem = $firefox->execute_script('return arguments[0]', $elem);
+                isa_ok($script_elem, 'Selenium::Remote::WebElement', 'execute_script element return');
+                is($elem->id, $script_elem->id, 'Sync script returns identical WebElement id');
 
-                  my $async = q{
+                my $async = q{
 var callback = arguments[arguments.length - 1];
 callback(arguments[0]);
 };
-                  my $async_elem = $firefox->execute_async_script($async, $elem);
-                  isa_ok($async_elem, 'Selenium::Remote::WebElement', 'execute_async_script element return');
-                  is($elem->id, $async_elem->id, 'Async script returns identical WebElement id');
-              }
+                my $async_elem = $firefox->execute_async_script($async, $elem);
+                isa_ok($async_elem, 'Selenium::Remote::WebElement', 'execute_async_script element return');
+                is($elem->id, $async_elem->id, 'Async script returns identical WebElement id');
+            }
 
             $firefox->shutdown_binary;
         }