提交 b347c9ff 编写于 作者: Y yancen

[case]添加htmlparser只有结束标签

上级 3b9e15e6
......@@ -5,7 +5,6 @@
<property name="report.path" value="_test/tools/br/report_plugins"/>
<property name="coverage.path" value="_test/coverage"/>
<property name="report.file" value="_test/tools/br/report.html"/>
<property name="svn.project" value="ueditor_svn"/>
<property name="git.project" value="ueditor_git"/>
<property name="git.user" value=""/>
......
......@@ -60,4 +60,9 @@ test( '裸字', function() {
var root = UE.htmlparser('sdfasdfasdf');
equals(root.toHtml().replace(/[ ]+>/g,'>'),'sdfasdfasdf');
});
test( '只有结束标签的情况', function() {
var root = UE.htmlparser('<p>hello1</a></p><p>hello2</p>');
equals(root.toHtml().replace(/[ ]+>/g,'>'),'<p>hello1</p><p>hello2</p>');
});
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册