+++ /dev/null
-#!/usr/bin/perl
-use t::lib tests => 3;
-
-sub replace_age {
- my ($branch, $age) = @_;
- $branch->look_down(id => 'age')->replace_content($age);
-}
-
-sub test {
- my $age = shift;
- my $tree = mktree 't/html/highlander2.html';
- my $if_then = $tree->look_down(id => 'age_dialog')->highlander2(
- cond => [
- under10 => [
- sub { $_[0] < 10 },
- \&replace_age
- ],
- under18 => [
- sub { $_[0] < 18 },
- \&replace_age
- ],
- welcome => [
- sub { 1 },
- \&replace_age
- ]
- ],
- cond_arg => [ $age ]
- );
-
- local $_; # XML::Parser does not like read-only $_ (RT #101129)
- isxml ($tree, "t/html/highlander2-$age.exp", "highlander2 for age $age");
-}
-
-test $_ for qw(5 15 27);