فهرست منبع

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 سال پیش
والد
کامیت
971ccd6b25
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;