File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ use FindBin qw($Bin $RealBin);
99use lib " $Bin /../../Gtk3-WebKit2/lib" ;
1010use URI;
1111
12- use_ok ' WWW::WebKit2' ;
13-
1412# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1513plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1614
15+ use_ok ' WWW::WebKit2' ;
16+
1717my $timeout = 1000;
1818
1919my $sel = WWW::WebKit2-> new(xvfb => 1);
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ use FindBin qw($Bin $RealBin);
88use lib " $Bin /../../Gtk3-WebKit2/lib" ;
99use URI;
1010
11- use_ok ' WWW::WebKit2' ;
12-
1311# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1412plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1513
14+ use_ok ' WWW::WebKit2' ;
15+
1616my $webkit = WWW::WebKit2-> new(xvfb => 1);
1717eval { $webkit -> init; };
1818if ($@ and $@ =~ / \A Could not start Xvfb/ ) {
Original file line number Diff line number Diff line change @@ -8,12 +8,11 @@ use FindBin qw($Bin $RealBin);
88use lib " $Bin /../../Gtk3-WebKit2/lib" ;
99use URI;
1010
11-
12- use_ok ' WWW::WebKit2' ;
13-
1411# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1512plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1613
14+ use_ok ' WWW::WebKit2' ;
15+
1716my $webkit = WWW::WebKit2-> new(xvfb => 1);
1817
1918eval { $webkit -> init; };
@@ -32,4 +31,4 @@ $webkit->open("$Bin/test/drag_and_drop.html");
3231$webkit -> mouse_input_drag_and_drop_to_object(' id=dragme' , ' id=target' );
3332ok($webkit -> is_element_present(' xpath=//div[@id="target"]//div[@id="dragme"]' ), ' Element has been successfully dragged by the mouse' );
3433
35- done_testing;
34+ done_testing;
Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ use lib "$Bin/../../Gtk3-WebKit2/lib";
1010use Test::Fake::HTTPD;
1111use URI;
1212
13- use_ok ' WWW::WebKit2' ;
14-
1513# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1614plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
15+
16+ use_ok ' WWW::WebKit2' ;
17+
1718my $webkit = WWW::WebKit2-> new(xvfb => 1);
1819eval { $webkit -> init; };
1920if ($@ and $@ =~ / \A Could not start Xvfb/ ) {
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ use File::Slurper qw(read_text);
1010use lib " $Bin /../../Gtk3-WebKit2/lib" ;
1111use URI;
1212
13- use_ok ' WWW::WebKit2' ;
14-
1513# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1614plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1715
16+ use_ok ' WWW::WebKit2' ;
17+
1818my $webkit = WWW::WebKit2-> new(xvfb => 1);
1919eval { $webkit -> init; };
2020if ($@ and $@ =~ / \A Could not start Xvfb/ ) {
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ use FindBin qw($Bin $RealBin);
88use lib " $Bin /../../Gtk3-WebKit2/lib" ;
99use URI;
1010
11- use_ok ' WWW::WebKit2' ;
12-
1311# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1412plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1513
14+ use_ok ' WWW::WebKit2' ;
15+
1616my $webkit = WWW::WebKit2-> new(xvfb => 1);
1717eval { $webkit -> init; };
1818if ($@ and $@ =~ / \A Could not start Xvfb/ ) {
Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ use FindBin qw($Bin $RealBin);
88use lib " $Bin /../../Gtk3-WebKit2/lib" ;
99use URI;
1010
11- use_ok ' WWW::WebKit2' ;
1211
1312# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1413plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1514
15+ use_ok ' WWW::WebKit2' ;
16+
1617my $webkit = WWW::WebKit2-> new(xvfb => 1);
1718eval { $webkit -> init; };
1819if ($@ and $@ =~ / \A Could not start Xvfb/ ) {
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ use FindBin qw($Bin $RealBin);
1010use lib " $Bin /../../Gtk3-WebKit2/lib" ;
1111use URI;
1212
13- use_ok ' WWW::WebKit2' ;
14-
1513# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1614plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1715
16+ use_ok ' WWW::WebKit2' ;
17+
1818my $dir = File::Temp-> newdir();
1919
2020# logging should be off by default
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ use FindBin qw($Bin $RealBin);
88use lib " $Bin /../../Gtk3-WebKit2/lib" ;
99use URI;
1010
11- use_ok ' WWW::WebKit2' ;
12-
1311# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1412plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1513
14+ use_ok ' WWW::WebKit2' ;
15+
1616my $webkit = WWW::WebKit2-> new(xvfb => 1);
1717eval { $webkit -> init; };
1818if ($@ and $@ =~ / \A Could not start Xvfb/ ) {
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ use FindBin qw($Bin $RealBin);
88use lib " $Bin /../../Gtk3-WebKit2/lib" ;
99use URI;
1010
11- use_ok ' WWW::WebKit2' ;
12-
1311# Running tests as root will sometimes spawn an X11 that cannot be closed automatically and leave the test hanging
1412plan skip_all => ' Tests run as root may hang due to X11 server not closing.' unless $> ;
1513
14+ use_ok ' WWW::WebKit2' ;
15+
1616my $webkit = WWW::WebKit2-> new(xvfb => 1);
1717eval { $webkit -> init; };
1818if ($@ and $@ =~ / \A Could not start Xvfb/ ) {
You can’t perform that action at this time.
0 commit comments