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

Public Member Functions

 __init__ (self, build_location)
 
 ExecutablePath (self, name)
 
 ScriptPath (self, name)
 
 WorkingDir (self, other_components='')
 
 TestingDir (self, other_components='')
 
 ThirdPartyFontsDir (self)
 

Public Attributes

 testing_dir = os.path.join(root_finder.pdfium_root, 'testing')
 
 my_dir = os.path.join(self.testing_dir, 'tools')
 
 pdfium_dir = root_finder.pdfium_root
 
 base_dir = root_finder.source_root
 
 build_dir = os.path.join(self.base_dir, build_location)
 
str os_name = os_name()
 

Detailed Description

A class for finding directories and paths under either a standalone
checkout or a chromium checkout of PDFium.

Definition at line 58 of file common.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.common.DirectoryFinder.__init__ ( self,
build_location )

Definition at line 62 of file common.py.

Member Function Documentation

◆ ExecutablePath()

testing.tools.common.DirectoryFinder.ExecutablePath ( self,
name )

◆ ScriptPath()

testing.tools.common.DirectoryFinder.ScriptPath ( self,
name )
Finds other scripts in the same directory as this one.

Definition at line 79 of file common.py.

References testing.tools.common.DirectoryFinder.my_dir.

◆ TestingDir()

testing.tools.common.DirectoryFinder.TestingDir ( self,
other_components = '' )
Finds test files somewhere under the testing directory.

Definition at line 90 of file common.py.

References testing.tools.common.DirectoryFinder.testing_dir.

◆ ThirdPartyFontsDir()

testing.tools.common.DirectoryFinder.ThirdPartyFontsDir ( self)
Finds directory with the test fonts.

Definition at line 97 of file common.py.

References testing.tools.common.DirectoryFinder.base_dir.

◆ WorkingDir()

testing.tools.common.DirectoryFinder.WorkingDir ( self,
other_components = '' )
Places generated files under the build directory, not source dir.

Definition at line 83 of file common.py.

References testing.tools.common.DirectoryFinder.build_dir, and testing.tools.safetynet_image.ImageComparison.build_dir.

Member Data Documentation

◆ base_dir

testing.tools.common.DirectoryFinder.base_dir = root_finder.source_root

Definition at line 68 of file common.py.

Referenced by testing.tools.common.DirectoryFinder.ThirdPartyFontsDir().

◆ build_dir

testing.tools.common.DirectoryFinder.build_dir = os.path.join(self.base_dir, build_location)

◆ my_dir

testing.tools.common.DirectoryFinder.my_dir = os.path.join(self.testing_dir, 'tools')

Definition at line 66 of file common.py.

Referenced by testing.tools.common.DirectoryFinder.ScriptPath().

◆ os_name

◆ pdfium_dir

testing.tools.common.DirectoryFinder.pdfium_dir = root_finder.pdfium_root

Definition at line 67 of file common.py.

◆ testing_dir

testing.tools.common.DirectoryFinder.testing_dir = os.path.join(root_finder.pdfium_root, 'testing')

Definition at line 65 of file common.py.

Referenced by testing.tools.common.DirectoryFinder.TestingDir().


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