diff --git a/_test/build_run_plugin.xml b/_test/build_run_plugin.xml index c6af6d49b47693f0658a5a99ca00f149e71c6147..dbfc0601f41365375844ff94ecaef11643a1bbb8 100644 --- a/_test/build_run_plugin.xml +++ b/_test/build_run_plugin.xml @@ -5,7 +5,6 @@ - diff --git a/_test/core/htmlparser.js b/_test/core/htmlparser.js index eba2349dd6f61ae272c600679f44bc149bfe6392..fa761f6f2c20065e49932e2b797c5dacbeddf6e4 100644 --- a/_test/core/htmlparser.js +++ b/_test/core/htmlparser.js @@ -60,4 +60,9 @@ test( '裸字', function() { var root = UE.htmlparser('sdfasdfasdf'); equals(root.toHtml().replace(/[ ]+>/g,'>'),'sdfasdfasdf'); +}); +test( '只有结束标签的情况', function() { + var root = UE.htmlparser('

hello1

hello2

'); + equals(root.toHtml().replace(/[ ]+>/g,'>'),'

hello1

hello2

'); + }); \ No newline at end of file