Skip to content

Commit

Permalink
test changing element types
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 9, 2014
1 parent 5d948a8 commit 7255bf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/mojo/dom.t
Expand Up @@ -2030,12 +2030,12 @@ is $dom->at('a')->wrap_content('A')->type, 'a', 'right element';
is "$dom", '<a>Test</a>', 'right result';
is $dom->wrap_content('<b></b>')->node, 'root', 'right node';
is "$dom", '<b><a>Test</a></b>', 'right result';
is $dom->at('b')->strip->at('a')->wrap_content('1<b c="d"></b>')->type, 'a',
'right element';
is "$dom", '<a>1<b c="d">Test</b></a>', 'right result';
is $dom->at('b')->strip->at('a')->type('e:a')->wrap_content('1<b c="d"></b>')
->type, 'e:a', 'right element';
is "$dom", '<e:a>1<b c="d">Test</b></e:a>', 'right result';
is $dom->at('a')->wrap_content('C<c><d>D</d><e>E</e></c>F')->parent->node,
'root', 'right node';
is "$dom", '<a>C<c><d>D1<b c="d">Test</b></d><e>E</e></c>F</a>',
is "$dom", '<e:a>C<c><d>D1<b c="d">Test</b></d><e>E</e></c>F</e:a>',
'right result';

# Broken "div" in "td"
Expand Down

0 comments on commit 7255bf3

Please sign in to comment.