incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [08/37] git commit: Check if html5 validation is enabled for partial content too
Date Mon, 16 Dec 2013 22:16:08 GMT
Check if html5 validation is enabled for partial content too


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

Branch: refs/heads/db/5424
Commit: a113345dc4e79ca40c29726475f241c8b63379d3
Parents: fac4ad7
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Dec 13 14:32:55 2013 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Dec 13 14:37:47 2013 -0500

----------------------------------------------------------------------
 AlluraTest/alluratest/validation.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a113345d/AlluraTest/alluratest/validation.py
----------------------------------------------------------------------
diff --git a/AlluraTest/alluratest/validation.py b/AlluraTest/alluratest/validation.py
index d6723e5..9fbdd84 100644
--- a/AlluraTest/alluratest/validation.py
+++ b/AlluraTest/alluratest/validation.py
@@ -278,7 +278,8 @@ class ValidatingTestApp(PostParamCheckingTestApp):
         content_type = resp.headers['Content-Type']
         if content_type.startswith('text/html'):
             if val_params['validate_chunk']:
-                validate_html5_chunk(content)
+                if Config.instance().validation_enabled('html5'):
+                    validate_html5_chunk(content)
             else:
                 validate_page(resp)
         elif content_type.split(';', 1)[0] in ('text/plain', 'text/x-python', 'application/octet-stream'):


Mime
View raw message