14 def __init__(self, finder, features, js_disabled, xfa_disabled,
16 self.
has_v8 =
not js_disabled
and 'V8' in features
17 self.
has_xfa =
not js_disabled
and not xfa_disabled
and 'XFA' in features
21 'SUPPRESSIONS_IMAGE_DIFF', finder)
23 'SUPPRESSIONS_EXACT_MATCHING', finder)
26 v8_option =
"v8" if self.
has_v8 else "nov8"
27 xfa_option =
"xfa" if self.
has_xfa else "noxfa"
28 with open(os.path.join(finder.TestingDir(), suppressions_filename))
as f:
36 y.split(
' ')
for y
in [x.split(
'#')[0].strip()
37 for x
in f.readlines()]
if y
44 for x
in unfiltered_list
49 os_column = item[1].
split(
",")
50 js_column = item[2].
split(
",")
51 xfa_column = item[3].
split(
",")
52 rendering_option_column = item[4].
split(
",")
53 return ((
'*' in os_column
or os_name
in os_column)
and
54 (
'*' in js_column
or js
in js_column)
and
55 (
'*' in xfa_column
or xfa
in xfa_column)
and
56 (
'*' in rendering_option_column
or
57 rendering_option
in rendering_option_column))
61 print(
"%s result is suppressed" % input_filename)
66 if "xfa_specific" in input_filepath
and not self.
has_xfa:
67 print(
"%s execution is suppressed" % input_filepath)
73 print(
"%s image diff comparison is suppressed" % input_filename)
79 print(f
"{input_filename} image diff comparison is fuzzy")
80 return pngdiffer.FUZZY_MATCHING
81 return pngdiffer.EXACT_MATCHING
static void split(QT_FT_Vector *b)
QDebug print(QDebug debug, QSslError::SslError error)
QFuture< QSet< QChar > > set
[10]
file open(QIODevice::ReadOnly)