You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/12/16 18:10:14 UTC

[35/36] git commit: Check if html5 validation is enabled for partial content too

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/cj/6821
Commit: a113345dc4e79ca40c29726475f241c8b63379d3
Parents: fac4ad7
Author: Dave Brondsema <da...@brondsema.net>
Authored: Fri Dec 13 14:32:55 2013 -0500
Committer: Dave Brondsema <da...@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'):