X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FTest%2FWWW%2FSelenium%2FCatalyst.pm;h=7226019ecaa850a31d8a5d1119f26686f5e48608;hb=d5bcfeb7f76d0be1fe9cdeb5dbce297c0bb4d6a6;hp=509c22cea56c6590c579e16725f8cb1ed7d814a5;hpb=1cdeb21f11323218fd364b40f86e6b0df8a6a625;p=catagits%2FTest-WWW-Selenium-Catalyst.git diff --git a/lib/Test/WWW/Selenium/Catalyst.pm b/lib/Test/WWW/Selenium/Catalyst.pm index 509c22c..7226019 100644 --- a/lib/Test/WWW/Selenium/Catalyst.pm +++ b/lib/Test/WWW/Selenium/Catalyst.pm @@ -40,12 +40,6 @@ on. I can live with that, but I need your help to get to that stage! Please report any problems to RT, the Catalyst mailing list, or the #catalyst IRC channel on L. Thanks! -=head2 KNOWN ISSUES - -Sometimes the Selenium server doesn't die after the tests when running -under C. C works fine, so until I (or you!) figure -out the problem, use C. - =head1 SYNOPSIS use Test::WWW::Selenium::Catalyst 'MyApp'; @@ -57,7 +51,7 @@ out the problem, use C. This module starts the SeleniumRC server and your Catalyst app so that you can test it with SeleniumRC. Once you've called -Cstart>, everything is just like +C<< Test::WWW::Selenium::Catalyst->start >>, everything is just like L. =head1 FUNCTIONS @@ -86,7 +80,7 @@ sub _start_server { my $pid; if(0 == ($pid = fork())){ local $SIG{TERM} = sub { - diag("Selenium server $$ going down (TERM)"); + diag("Selenium server $$ going down (TERM)") if $DEBUG; exit 0; }; @@ -95,11 +89,11 @@ sub _start_server { if(!$DEBUG){ close *STDERR; close *STDOUT; - close *STDIN; + #close *STDIN; } diag("Selenium running in $$") if $DEBUG; - Alien::SeleniumRC->start() + Alien::SeleniumRC::start() or croak "Can't start Selenium server"; diag("Selenium server $$ going down") if $DEBUG; exit 1;