Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added one extra unit test for redundant br logic.

  • Loading branch information...
commit 1222549ca2207531589d82f29f753c82a1eeabd8 1 parent 6a50941
@spocke spocke authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.