Skip to content

Commit

Permalink
Fixing uninitialised errors in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Oct 21, 2024
1 parent 4bbb383 commit 3e447ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/01-marionette.t
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ SKIP: {
TODO: {
local $TODO = "Some installations of firefox can default to webdriver being off"; # such as http://www.cpantesters.org/cpan/report/a0532bce-c32c-11ee-ae2f-883f6e8775ea (FreeBSD 14.0-STABLE) (BuildID 20240123011445)
my $webdriver = $firefox->script('return navigator.webdriver');
ok($webdriver, "navigator.webdriver returns true:$webdriver");
ok($webdriver, "navigator.webdriver returns true:" . (defined $webdriver ? $webdriver : q[undef]));
}
}
ok(!defined $firefox->child_error(), "Firefox does not have a value for child_error");
Expand Down Expand Up @@ -1865,7 +1865,7 @@ SKIP: {
my $accuracy = $geo3->accuracy();
TODO: {
local $TODO = ($major_version < 63) ? "\$geo3->accuracy() not available for older versions of firefox" : ($^O eq 'dragonfly') ? "\$geo3->accuracy can fail on DragonFly" : q[];
ok(defined $accuracy && $accuracy >= 0, "\$geo3->accuracy() is a positive float (accuracy in metres):$accuracy");
ok(defined $accuracy && $accuracy >= 0, "\$geo3->accuracy() is a positive float (accuracy in metres):" . (defined $accuracy ? $accuracy : q[]));
}
my $altitude = $geo3->altitude();
if (defined $altitude) {
Expand Down

0 comments on commit 3e447ad

Please sign in to comment.