Răsfoiți Sursa

Run firefox tests on windows without $ENV{DISPLAY}

Windows doesn't use the DISPLAY environment variable, so we only have to
check this if we're running on linux.
Daniel Gempesaw 10 ani în urmă
părinte
comite
971ccd6b25
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      t/CanStartBinary.t

+ 2 - 2
t/CanStartBinary.t

@@ -49,8 +49,8 @@ FIREFOX: {
     ok($command =~ /firefox -no-remote/, 'firefox command has proper args');
 
   SKIP: {
-        skip 'Firefox will not start up without a display', 3
-          unless $ENV{DISPLAY};
+        skip 'Firefox will not start up on UNIX without a display', 3
+          if ($^O ne 'MSWin32' && ! $ENV{DISPLAY});
         my $binary = Selenium::Firefox::Binary::firefox_path();
         skip 'Firefox binary not found in path', 3
           unless $binary;