Permalink
Browse files

Added one extra unit test for redundant br logic.

  • Loading branch information...
1 parent 6a50941 commit 1222549ca2207531589d82f29f753c82a1eeabd8 @spocke spocke committed Mar 10, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 tests/tinymce.html.DomParser.html
View
9 tests/tinymce.html.DomParser.html
@@ -309,8 +309,13 @@
expect(1);
parser = new tinymce.html.DomParser({remove_trailing_brs : true}, schema);
- root = parser.parse('<p>a<br></p><p>a<br><br></p><p>a<br><span data-mce-type="bookmark"></span><br></p><p>a<span data-mce-type="bookmark"></span><br></p>');
- equals(serializer.serialize(root), '<p>a</p><p>a<br /><br /></p><p>a<br /><br /></p><p>a</p>', 'Remove traling br elements.');
+ root = parser.parse(
+ '<p>a<br></p>' +
+ '<p>a<br>b<br></p>' +
+ '<p>a<br><br></p><p>a<br><span data-mce-type="bookmark"></span><br></p>' +
+ '<p>a<span data-mce-type="bookmark"></span><br></p>'
+ );
+ equals(serializer.serialize(root), '<p>a</p><p>a<br />b</p><p>a<br /><br /></p><p>a<br /><br /></p><p>a</p>', 'Remove traling br elements.');
});
</script>
</head>

0 comments on commit 1222549

Please sign in to comment.