1
0
Эх сурвалжийг харах

Clean up assorted whitespace inconsistencies

Daniel Gempesaw 9 жил өмнө
parent
commit
9a48430204

+ 3 - 3
lib/Selenium/CanStartBinary.pm

@@ -138,7 +138,7 @@ has '+port' => (
         if ($self->_real_binary) {
         if ($self->_real_binary) {
             if ($self->fixed_ports) {
             if ($self->fixed_ports) {
                 return find_open_port($self->binary_port);
                 return find_open_port($self->binary_port);
-			}
+            }
             else {
             else {
                 return find_open_port_above($self->binary_port);
                 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 );
     my $driver2 = Selenium::Chrome->new( port => 1234 );
 
 
 The default behavior can be overridden. In this case, only the default
 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
 higher ports. This ensures that either the default or given port will be
 assigned, or no port will be assigned at all.
 assigned, or no port will be assigned at all.
 
 
@@ -205,7 +205,7 @@ has 'marionette_port' => (
         else {
         else {
             if ($self->fixed_ports) {
             if ($self->fixed_ports) {
                 return find_open_port($self->marionette_binary_port);
                 return find_open_port($self->marionette_binary_port);
-			}
+            }
             else {
             else {
                 return find_open_port_above($self->marionette_binary_port);
                 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),
             ok(Selenium::CanStartBinary::probe_port($firefox->marionette_port),
                'the firefox binary is listening on its 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];
 var callback = arguments[arguments.length - 1];
 callback(arguments[0]);
 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;
             $firefox->shutdown_binary;
         }
         }