From b347c9ff991db346e7d3b28eeee36e31bd6e5b3f Mon Sep 17 00:00:00 2001 From: yancen Date: Mon, 11 Mar 2013 15:09:21 +0800 Subject: [PATCH] =?UTF-8?q?[case]=E6=B7=BB=E5=8A=A0htmlparser=E5=8F=AA?= =?UTF-8?q?=E6=9C=89=E7=BB=93=E6=9D=9F=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _test/build_run_plugin.xml | 1 - _test/core/htmlparser.js | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_test/build_run_plugin.xml b/_test/build_run_plugin.xml index c6af6d49..dbfc0601 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 eba2349d..fa761f6f 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 -- GitLab