فهرست منبع

Use the cleaner version of test setup after 35c4589

Daniel Gempesaw 11 سال پیش
والد
کامیت
f5b665c73f
5فایلهای تغییر یافته به همراه8 افزوده شده و 17 حذف شده
  1. 2 4
      t/01-driver.t
  2. 2 4
      t/02-webelement.t
  3. 0 1
      t/10-switch-to-window.t
  4. 2 4
      t/Firefox-Profile.t
  5. 2 4
      t/Test-Selenium-Remote-Driver-google.t

+ 2 - 4
t/01-driver.t

@@ -14,11 +14,9 @@ use FindBin;
 use lib $FindBin::Bin . '/lib';
 use lib $FindBin::Bin . '/lib';
 use TestHarness;
 use TestHarness;
 
 
-my $harness = TestHarness->new(
+my %selenium_args = %{ TestHarness->new(
     this_file => $FindBin::Script
     this_file => $FindBin::Script
-);
-my %selenium_args = %{ $harness->base_caps };
-$harness->skip_all_unless_mocks_exist;
+)->base_caps };
 
 
 my $driver = Selenium::Remote::Driver->new(%selenium_args);
 my $driver = Selenium::Remote::Driver->new(%selenium_args);
 my $website = 'http://localhost:63636';
 my $website = 'http://localhost:63636';

+ 2 - 4
t/02-webelement.t

@@ -9,11 +9,9 @@ use FindBin;
 use lib $FindBin::Bin . '/lib';
 use lib $FindBin::Bin . '/lib';
 use TestHarness;
 use TestHarness;
 
 
-my $harness = TestHarness->new(
+my %selenium_args = %{ TestHarness->new(
     this_file => $FindBin::Script
     this_file => $FindBin::Script
-);
-my %selenium_args = %{ $harness->base_caps };
-$harness->skip_all_unless_mocks_exist;
+)->base_caps };
 
 
 my $driver = Selenium::Remote::Driver->new(%selenium_args);
 my $driver = Selenium::Remote::Driver->new(%selenium_args);
 my $website = 'http://localhost:63636';
 my $website = 'http://localhost:63636';

+ 0 - 1
t/10-switch-to-window.t

@@ -18,7 +18,6 @@ my %selenium_args = (
     javascript     => 1,
     javascript     => 1,
     %{ $harness->base_caps }
     %{ $harness->base_caps }
 );
 );
-$harness->skip_all_unless_mocks_exist;
 
 
 plan tests => 9;
 plan tests => 9;
 
 

+ 2 - 4
t/Firefox-Profile.t

@@ -17,11 +17,9 @@ use FindBin;
 use lib $FindBin::Bin . '/lib';
 use lib $FindBin::Bin . '/lib';
 use TestHarness;
 use TestHarness;
 
 
-my $harness = TestHarness->new(
+my %selenium_args = %{ TestHarness->new(
     this_file => $FindBin::Script
     this_file => $FindBin::Script
-);
-my %selenium_args = %{ $harness->base_caps };
-$harness->skip_all_unless_mocks_exist;
+)->base_caps };
 
 
 my $fixture_dir = $FindBin::Bin . '/www/';
 my $fixture_dir = $FindBin::Bin . '/www/';
 
 

+ 2 - 4
t/Test-Selenium-Remote-Driver-google.t

@@ -9,11 +9,9 @@ use FindBin;
 use lib $FindBin::Bin . '/lib';
 use lib $FindBin::Bin . '/lib';
 use TestHarness;
 use TestHarness;
 
 
-my $harness = TestHarness->new(
+my %selenium_args = %{ TestHarness->new(
     this_file => $FindBin::Script
     this_file => $FindBin::Script
-);
-my %selenium_args = %{ $harness->base_caps };
-$harness->skip_all_unless_mocks_exist;
+)->base_caps };
 
 
 # Try to find
 # Try to find
 my $t = Test::Selenium::Remote::Driver->new(
 my $t = Test::Selenium::Remote::Driver->new(