]> iEval git - html-element-library.git/blame - t/unroll_select.t
Refactor tests (first pass)
[html-element-library.git] / t / unroll_select.t
CommitLineData
aa016126
MG
1#!/usr/bin/perl
2use t::lib tests => 1;
3use lib 't';
67e78ff2 4
5use SelectData;
6
aa016126 7my $tree = mktree 't/html/unroll_select.html';
67e78ff2 8
aa016126
MG
9$tree->unroll_select(
10 select_label => 'clan_list',
11 option_value => sub { my $row = shift; $row->{clan_id} },
12 option_content => sub { my $row = shift; $row->{clan_name} },
13 option_selected => sub { my $row = shift; $row->{selected} },
14 data => SelectData->load_data,
15 data_iter => sub { my $data = shift; shift @$data });
67e78ff2 16
aa016126 17isxml ($tree, 't/html/unroll_select.exp', 'unroll_select');
This page took 0.025432 seconds and 4 git commands to generate.