allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [02/12] allura git commit: Add test for checkbox rendering
Date Thu, 13 Sep 2018 19:24:06 GMT
Add test for checkbox rendering


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/6762c57a
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/6762c57a
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/6762c57a

Branch: refs/heads/master
Commit: 6762c57af7304d870f1b7804104181db3f0c581d
Parents: d9a7b0f
Author: Shalitha <shalithasuranga@gmail.com>
Authored: Tue Sep 11 22:17:04 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Sep 13 19:18:27 2018 +0000

----------------------------------------------------------------------
 Allura/allura/tests/test_utils.py | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/6762c57a/Allura/allura/tests/test_utils.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_utils.py b/Allura/allura/tests/test_utils.py
index a52d295..2b549bf 100644
--- a/Allura/allura/tests/test_utils.py
+++ b/Allura/allura/tests/test_utils.py
@@ -281,6 +281,11 @@ class TestHTMLSanitizer(unittest.TestCase):
         p = utils.ForgeHTMLSanitizerFilter(walker)
         assert_equal(self.simple_tag_list(p), ['p', 'p'])
 
+    def test_html_sanitizer_checkbox(self):
+        walker = self.walker_from_text('<p><input type="checkbox" disabled/><input
type="text" disabled/><input type="checkbox" disabled checked/></p>')
+        p = utils.ForgeHTMLSanitizerFilter(walker)
+        assert_equal(self.simple_tag_list(p), ['p', 'input', 'input', 'p'])
+
 
 def test_ip_address():
     req = Mock()


Mime
View raw message