MDL-24223 more unittests for html purifier
authorPetr Skoda <skodak@moodle.org>
Tue, 21 Sep 2010 07:20:12 +0000 (07:20 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 21 Sep 2010 07:20:12 +0000 (07:20 +0000)
lib/simpletest/testhtmlpurifier.php

index 3ba87b7..889fd42 100644 (file)
@@ -48,6 +48,8 @@ class htmlpurifier_test extends UnitTestCase {
         $text = '<lang lang="de_DU">xxxxxx</lang>';
         $this->assertIdentical($text, purify_html($text));
 
+        $text = "\n\raa\rsss\nsss\r";
+        $this->assertIdentical($text, purify_html($text));
     }
 
 }