Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.suppressor.Suppressor Class Reference
+ Collaboration diagram for testing.tools.suppressor.Suppressor:

Public Member Functions

 __init__ (self, finder, features, js_disabled, xfa_disabled, rendering_option)
 
 IsResultSuppressed (self, input_filename)
 
 IsExecutionSuppressed (self, input_filepath)
 
 IsImageDiffSuppressed (self, input_filename)
 
 GetImageMatchingAlgorithm (self, input_filename)
 

Public Attributes

str has_v8 = not js_disabled and 'V8' in features
 
str has_xfa = not js_disabled and not xfa_disabled and 'XFA' in features
 
 rendering_option = rendering_option
 
 suppression_set = self._LoadSuppressedSet('SUPPRESSIONS', finder)
 
 image_suppression_set
 
 exact_matching_suppression_set
 

Protected Member Functions

 _LoadSuppressedSet (self, suppressions_filename, finder)
 
 _ExtractSuppressions (self, f)
 
 _FilterSuppressions (self, os_name, js, xfa, rendering_option, unfiltered_list)
 
 _MatchSuppression (self, item, os_name, js, xfa, rendering_option)
 

Detailed Description

Definition at line 12 of file suppressor.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.suppressor.Suppressor.__init__ ( self,
finder,
features,
js_disabled,
xfa_disabled,
rendering_option )

Definition at line 14 of file suppressor.py.

Member Function Documentation

◆ _ExtractSuppressions()

testing.tools.suppressor.Suppressor._ExtractSuppressions ( self,
f )
protected

Definition at line 34 of file suppressor.py.

Referenced by testing.tools.suppressor.Suppressor._LoadSuppressedSet().

+ Here is the caller graph for this function:

◆ _FilterSuppressions()

testing.tools.suppressor.Suppressor._FilterSuppressions ( self,
os_name,
js,
xfa,
rendering_option,
unfiltered_list )
protected

Definition at line 40 of file suppressor.py.

References testing.tools.suppressor.Suppressor._MatchSuppression().

Referenced by testing.tools.suppressor.Suppressor._LoadSuppressedSet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _LoadSuppressedSet()

testing.tools.suppressor.Suppressor._LoadSuppressedSet ( self,
suppressions_filename,
finder )
protected

◆ _MatchSuppression()

testing.tools.suppressor.Suppressor._MatchSuppression ( self,
item,
os_name,
js,
xfa,
rendering_option )
protected

Definition at line 48 of file suppressor.py.

References split().

Referenced by testing.tools.suppressor.Suppressor._FilterSuppressions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetImageMatchingAlgorithm()

testing.tools.suppressor.Suppressor.GetImageMatchingAlgorithm ( self,
input_filename )

Definition at line 77 of file suppressor.py.

References testing.tools.suppressor.Suppressor.exact_matching_suppression_set, and print().

+ Here is the call graph for this function:

◆ IsExecutionSuppressed()

testing.tools.suppressor.Suppressor.IsExecutionSuppressed ( self,
input_filepath )

Definition at line 65 of file suppressor.py.

References testing.tools.suppressor.Suppressor.has_xfa, and print().

+ Here is the call graph for this function:

◆ IsImageDiffSuppressed()

testing.tools.suppressor.Suppressor.IsImageDiffSuppressed ( self,
input_filename )

Definition at line 71 of file suppressor.py.

References testing.tools.suppressor.Suppressor.image_suppression_set, and print().

Referenced by testing.tools.test_runner._TestCaseRunner._RegenerateIfNeeded().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsResultSuppressed()

testing.tools.suppressor.Suppressor.IsResultSuppressed ( self,
input_filename )

Definition at line 59 of file suppressor.py.

References print(), and testing.tools.suppressor.Suppressor.suppression_set.

Referenced by testing.tools.test_runner._TestCaseRunner._RegenerateIfNeeded(), testing.tools.test_runner.TestRunner._SuppressStatus(), testing.tools.test_runner.TestRunner.HandleResult(), and testing.tools.test_runner._TestCaseRunner.TestText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ exact_matching_suppression_set

testing.tools.suppressor.Suppressor.exact_matching_suppression_set
Initial value:
= self._LoadSuppressedSet(
'SUPPRESSIONS_EXACT_MATCHING', finder)

Definition at line 22 of file suppressor.py.

Referenced by testing.tools.suppressor.Suppressor.GetImageMatchingAlgorithm().

◆ has_v8

str testing.tools.suppressor.Suppressor.has_v8 = not js_disabled and 'V8' in features

◆ has_xfa

str testing.tools.suppressor.Suppressor.has_xfa = not js_disabled and not xfa_disabled and 'XFA' in features

◆ image_suppression_set

testing.tools.suppressor.Suppressor.image_suppression_set
Initial value:
= self._LoadSuppressedSet(
'SUPPRESSIONS_IMAGE_DIFF', finder)

Definition at line 20 of file suppressor.py.

Referenced by testing.tools.suppressor.Suppressor.IsImageDiffSuppressed().

◆ rendering_option

testing.tools.suppressor.Suppressor.rendering_option = rendering_option

◆ suppression_set

testing.tools.suppressor.Suppressor.suppression_set = self._LoadSuppressedSet('SUPPRESSIONS', finder)

The documentation for this class was generated from the following file: