From 9d2d75d8bcc6f5673e8c9fb2e02d54045f749509 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 8 Mar 2017 00:11:32 -0800 Subject: [PATCH] Add test case for removing empty list items. Signed-off-by: Edward Z. Yang --- tests/HTMLPurifier/Injector/RemoveEmptyTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/HTMLPurifier/Injector/RemoveEmptyTest.php b/tests/HTMLPurifier/Injector/RemoveEmptyTest.php index d719ba8a..4a976acf 100644 --- a/tests/HTMLPurifier/Injector/RemoveEmptyTest.php +++ b/tests/HTMLPurifier/Injector/RemoveEmptyTest.php @@ -78,6 +78,11 @@ class HTMLPurifier_Injector_RemoveEmptyTest extends HTMLPurifier_InjectorHarness $this->assertResult('   ', ''); } + public function testRemoveLi() + { + $this->assertResult("", ''); + } + public function testDontRemoveNbsp() { $this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true); -- 2.11.4.GIT