Permalink
Browse files

moved a few tests

  • Loading branch information...
kraih committed Jun 2, 2014
1 parent dfd89c6 commit 835576253e2407a0ef0d4df28f7383a484c01f6f
Showing with 4 additions and 5 deletions.
  1. +4 −5 t/mojo/dom.t
View
@@ -1846,6 +1846,10 @@ is $dom->find('#screw-up .ewww > a > img')->[2], undef, 'no result';
is $dom->find('#screw-up .ewww > a > img')->size, 2,
'right number of elements';
+# Broken "br" tag
+$dom = Mojo::DOM->new('<br< abc abc abc abc abc abc abc abc<p>Test</p>');
+is $dom->at('p')->text, 'Test', 'right text';
+
# Modifying an XML document
$dom = Mojo::DOM->new->parse(<<'EOF');
<?xml version='1.0' encoding='UTF-8'?>
@@ -2363,9 +2367,4 @@ my $huge = '<div ' . ('a=b ' x 32768) . '>Test</div>';
$dom = Mojo::DOM->new($huge);
is $dom->at('div[a=b]')->text, 'Test', 'right text';
-# Broken tag
-$huge = '<br< abc abc abc abc abc abc abc abc<p>Test</p>';
-$dom = Mojo::DOM->new($huge);
-is $dom->at('p')->text, 'Test', 'right text';
-
done_testing();

0 comments on commit 8355762

Please sign in to comment.