File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,11 @@ my $session = WebGUI::Test->session;
27
27
# ----------------------------------------------------------------------------
28
28
# Tests
29
29
30
- plan tests => 6; # Increment this number for each test you create
31
-
32
30
# ----------------------------------------------------------------------------
33
31
# put your tests here
34
32
35
- use_ok( ' WebGUI::Form::ButtonGroup' );
33
+ use WebGUI::Form::ButtonGroup;
34
+ use WebGUI::FormBuilder;
36
35
37
36
# ----------------------------------------------------------------------------
38
37
# buttons as params
@@ -67,6 +66,10 @@ cmp_deeply(
67
66
my $html = $bg -> toHtml;
68
67
like( $html , qr / onetwothree/ , ' buttons rendered without extras between or around' );
69
68
69
+ $bg -> addButton(" TestButton" , { name => " four" } );
70
+ like( $bg -> toHtml, qr / onetwothreefour/ , ' calling addButton twice does not nuke your buttons' );
71
+
72
+ done_testing();
70
73
71
74
# ----------------------------------------------------------------------------
72
75
# Test collateral
You can’t perform that action at this time.
0 commit comments