File: 06bugs_result_elements_warnings.t

package info (click to toggle)
libhtml-widget-perl 1.11-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 912 kB
  • ctags: 337
  • sloc: perl: 3,651; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use strict;
use warnings;

use Test::More tests => 1 + 1;    # +1 is for Test::NoWarnings
use Test::NoWarnings;

use HTML::Widget;
use lib 't/lib';
use HTMLWidget::TestLib;

{
    my $w = HTML::Widget->new;

    $w->element( 'Textfield', 'foo' );

    my $query = HTMLWidget::TestLib->mock_query( { foo => 'yada' } );

    my $result = $w->process($query);

    my @elements = $result->elements;

    ok( @elements == 1, '@elements contains 1 value' );
}