Skip to content

Commit

Permalink
test case where content cannot be wrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 5, 2014
1 parent a08584e commit 9ecfcd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/mojo/dom.t
Expand Up @@ -2023,6 +2023,8 @@ is "$dom", '<b>C<c><d>D<a>Test</a></d><e>E</e></c>F</b>', 'right result';

# Wrap content
$dom = Mojo::DOM->new('<a>Test</a>');
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',
Expand Down

0 comments on commit 9ecfcd1

Please sign in to comment.