File: label.t

package info (click to toggle)
libhtml-formfu-perl 0.07002-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,928 kB
  • ctags: 989
  • sloc: perl: 12,036; makefile: 9; sql: 5
file content (18 lines) | stat: -rw-r--r-- 398 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use HTML::FormFu;
use Test::More qw(tests 2);

my $f = HTML::FormFu->new(
    { tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } } );

$f->load_config_file('t/elements/label.yml');

$f->process;

like($f->render, qr/<span name="foo"><\/span>/, "element found");

like($f->render, qr/<div name="foo3">bar<\/div>/, "element with value and different tag found");