]> iEval git - html-element-library.git/blame - t/content_handler.t
Refactor tests (first pass)
[html-element-library.git] / t / content_handler.t
CommitLineData
aa016126
MG
1#!/usr/bin/perl
2use t::lib tests => 1;
3
4my $t1 = HTML::Element->new_from_lol(
5 ['html',
6 ['head',
7 [ 'title', 'I like stuff!' ]],
8 ['body', {id => 'corpus'}, {'lang', 'en-JP'},
9 'stuff',
10 ['p', 'um, p < 4!', {'class' => 'par123'}],
11 ['div', {foo => 'bar'}, '123'], # at 0.1.2
12 ['div', {jack => 'olantern'}, '456']]]); # at 0.1.2
67e78ff2 13
67e78ff2 14$t1->content_handler(corpus => 'all gone!');
aa016126 15isxml $t1, \'<html><head><title>I like stuff!</title></head><body id="corpus" lang="en-JP">all gone!</body></html>', 'content_handler';
This page took 0.01775 seconds and 4 git commands to generate.