summaryrefslogtreecommitdiff
path: root/t/03-html.t
diff options
context:
space:
mode:
authorGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 15:28:02 +0100
committerGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 15:28:02 +0100
commit38cca38c46f7613dcd5aff2e11ba6ad6153d0269 (patch)
tree6fbd35f4a7da0c8ce4dbeeb417033550c0509a28 /t/03-html.t
parenttest multiple imports with separate engines (diff)
downloadTree-Template-Declare-38cca38c46f7613dcd5aff2e11ba6ad6153d0269.tar.gz
Tree-Template-Declare-38cca38c46f7613dcd5aff2e11ba6ad6153d0269.tar.bz2
Tree-Template-Declare-38cca38c46f7613dcd5aff2e11ba6ad6153d0269.zip
test multiple calls to attribs
Diffstat (limited to 't/03-html.t')
-rw-r--r--t/03-html.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/03-html.t b/t/03-html.t
index 27cac64..d805e56 100644
--- a/t/03-html.t
+++ b/t/03-html.t
@@ -24,6 +24,8 @@ my $tree=tree {
name 'body';
node {
name 'p';
+ attribs id => 'p1';
+ attribs class => 'para';
node { name '~text'; attribs text => 'Page para' };
};
};
@@ -31,6 +33,6 @@ my $tree=tree {
};
is($tree->as_HTML(),
- qq{<html><head><title>Page title</title></head><body><p>Page para</body></html>\n},
+ qq{<html><head><title>Page title</title></head><body><p class="para" id="p1">Page para</body></html>\n},
'HTML tree'
);