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.pngdiffer.PNGDiffer Class Reference
+ Collaboration diagram for testing.tools.pngdiffer.PNGDiffer:

Public Member Functions

 __init__ (self, finder, reverse_byte_order, rendering_option, default_renderer)
 
 CheckMissingTools (self, regenerate_expected)
 
 GetActualFiles (self, input_filename, source_dir, working_dir)
 
 ComputeDifferences (self, input_filename, source_dir, working_dir, image_matching_algorithm)
 
 Regenerate (self, input_filename, source_dir, working_dir, image_matching_algorithm)
 

Public Attributes

 pdfium_diff_path = finder.ExecutablePath('pdfium_diff')
 
 os_name = finder.os_name
 
 reverse_byte_order = reverse_byte_order
 
 suffix_order = None
 

Protected Member Functions

 _RunCommand (self, cmd)
 
 _RunImageCompareCommand (self, image_diff, image_matching_algorithm)
 
 _RunImageDiffCommand (self, image_diff)
 

Detailed Description

Definition at line 44 of file pngdiffer.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.pngdiffer.PNGDiffer.__init__ ( self,
finder,
reverse_byte_order,
rendering_option,
default_renderer )

Definition at line 46 of file pngdiffer.py.

Member Function Documentation

◆ _RunCommand()

testing.tools.pngdiffer.PNGDiffer._RunCommand ( self,
cmd )
protected

Definition at line 84 of file pngdiffer.py.

Referenced by _RunImageCompareCommand(), _RunImageDiffCommand(), and Regenerate().

+ Here is the caller graph for this function:

◆ _RunImageCompareCommand()

testing.tools.pngdiffer.PNGDiffer._RunImageCompareCommand ( self,
image_diff,
image_matching_algorithm )
protected

Definition at line 91 of file pngdiffer.py.

References _RunCommand(), pdfium_diff_path, Options.reverse_byte_order, and reverse_byte_order.

Referenced by ComputeDifferences(), and Regenerate().

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

◆ _RunImageDiffCommand()

testing.tools.pngdiffer.PNGDiffer._RunImageDiffCommand ( self,
image_diff )
protected

Definition at line 100 of file pngdiffer.py.

References _RunCommand(), and pdfium_diff_path.

Referenced by ComputeDifferences().

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

◆ CheckMissingTools()

testing.tools.pngdiffer.PNGDiffer.CheckMissingTools ( self,
regenerate_expected )

Definition at line 66 of file pngdiffer.py.

◆ ComputeDifferences()

testing.tools.pngdiffer.PNGDiffer.ComputeDifferences ( self,
input_filename,
source_dir,
working_dir,
image_matching_algorithm )
Computes differences between actual and expected image files.

Returns:
  A list of `ImageDiff` instances, one per differing page.

Definition at line 107 of file pngdiffer.py.

References _RunImageCompareCommand(), _RunImageDiffCommand(), testing.tools.common.DirectoryFinder.os_name, os_name, print(), str, and suffix_order.

+ Here is the call graph for this function:

◆ GetActualFiles()

testing.tools.pngdiffer.PNGDiffer.GetActualFiles ( self,
input_filename,
source_dir,
working_dir )

Definition at line 71 of file pngdiffer.py.

References testing.tools.common.DirectoryFinder.os_name, os_name, and suffix_order.

◆ Regenerate()

testing.tools.pngdiffer.PNGDiffer.Regenerate ( self,
input_filename,
source_dir,
working_dir,
image_matching_algorithm )

Definition at line 157 of file pngdiffer.py.

References _RunCommand(), _RunImageCompareCommand(), testing.tools.common.DirectoryFinder.os_name, os_name, print(), and suffix_order.

+ Here is the call graph for this function:

Member Data Documentation

◆ os_name

testing.tools.pngdiffer.PNGDiffer.os_name = finder.os_name

Definition at line 49 of file pngdiffer.py.

Referenced by ComputeDifferences(), GetActualFiles(), and Regenerate().

◆ pdfium_diff_path

testing.tools.pngdiffer.PNGDiffer.pdfium_diff_path = finder.ExecutablePath('pdfium_diff')

Definition at line 48 of file pngdiffer.py.

Referenced by _RunImageCompareCommand(), and _RunImageDiffCommand().

◆ reverse_byte_order

testing.tools.pngdiffer.PNGDiffer.reverse_byte_order = reverse_byte_order

Definition at line 50 of file pngdiffer.py.

Referenced by _RunImageCompareCommand().

◆ suffix_order

testing.tools.pngdiffer.PNGDiffer.suffix_order = None

Definition at line 52 of file pngdiffer.py.

Referenced by ComputeDifferences(), GetActualFiles(), and Regenerate().


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