Switch to unified view

a/AlluraTesting/alluratest/validation.py b/AlluraTesting/alluratest/validation.py
...
...
8
import logging
8
import logging
9
import tempfile
9
import tempfile
10
import subprocess
10
import subprocess
11
import json
11
import json
12
import urllib2
12
import urllib2
13
import re
13
14
14
import tg
15
import tg
15
import mock
16
import mock
16
import beaker.session
17
import beaker.session
17
from paste.deploy import loadapp
18
from paste.deploy import loadapp
...
...
197
        
198
        
198
        ignored_errors = [
199
        ignored_errors = [
199
            'Required attributes missing on element "object"',
200
            'Required attributes missing on element "object"',
200
            'Stray end tag "embed".',
201
            'Stray end tag "embed".',
201
            'Stray end tag "param".',
202
            'Stray end tag "param".',
203
            r'Bad value .+? for attribute "onclick" on element "input": invalid return',
202
        ]
204
        ]
203
        for ignore in ignored_errors:
205
        for ignore in ignored_errors:
204
            resp = resp.replace('Error: ' + ignore, 'Ignoring: ' + ignore)
206
            resp = re.sub('Error: ' + ignore, 'Ignoring: ' + ignore, resp)
205
207
206
        if 'Error:' in resp:
208
        if 'Error:' in resp:
207
            fname = dump_to_file('html5-', html)
209
            fname = dump_to_file('html5-', html)
208
            message = resp.decode('ascii','ignore')
210
            message = resp.decode('ascii','ignore')
209
            report_validation_error('html5', fname, message)
211
            report_validation_error('html5', fname, message)