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

Public Member Functions

 __init__ (self, config)
 
 __getstate__ (self)
 
 GetSkiaGoldTester (self)
 

Public Attributes

 test_dir = config.test_dir
 
 test_type = config.test_type
 
 delete_output_on_success = config.delete_output_on_success
 
 enforce_expected_images = config.enforce_expected_images
 
 options = config.options
 
 features = config.features
 
 pdfium_test_path = config.GetPdfiumTestPath(finder)
 
 fixup_path = finder.ScriptPath('fixup_pdf_template.py')
 
 text_diff_path = finder.ScriptPath('text_diff.py')
 
 font_dir = os.path.join(finder.TestingDir(), 'resources', 'fonts')
 
 third_party_font_dir = finder.ThirdPartyFontsDir()
 
 source_dir = finder.TestingDir()
 
 working_dir = finder.WorkingDir(os.path.join('testing', self.test_dir))
 
 test_suppressor
 
 image_differ
 
 process_name = multiprocessing.current_process().name
 
 skia_tester = None
 

Detailed Description

State defined per process.

Definition at line 472 of file test_runner.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.test_runner._PerProcessState.__init__ ( self,
config )

Definition at line 475 of file test_runner.py.

Member Function Documentation

◆ __getstate__()

testing.tools.test_runner._PerProcessState.__getstate__ ( self)

Definition at line 504 of file test_runner.py.

◆ GetSkiaGoldTester()

testing.tools.test_runner._PerProcessState.GetSkiaGoldTester ( self)
Gets the `SkiaGoldTester` singleton for this worker.

Definition at line 507 of file test_runner.py.

References ImageWithBindOptions.options, language::SignalSlot.options, PrintOut::Box.options, QAbstractFileIconProviderPrivate.options, QAbstractPrintDialogPrivate.options, QAuthenticatorPrivate.options, QColorDialog.options, QColorDialogOptionsPrivate.options, QColorDialogPrivate.options, QFileDialog.options, QFileDialogArgs.options, QFileDialogOptionsPrivate.options, QFileDialogPrivate.options, QFileSystemModel.options, QFontDialog.options, QFontDialogOptionsPrivate.options, QFontDialogPrivate.options, QMdiAreaPrivate.options, QMdiSubWindowPrivate.options, QMessageBox.options, QMessageBoxPrivate.options, QMessageDialogOptionsPrivate.options, QPdfPageRendererPrivate::PageRequest.options, QPrintDialog.options, QPrintDialogPrivate.options, QQmlJS::Dom::AstDumper.options, QQmlJS::Dom::FormatPartialStatus.options, QQuickColorDialog.options, QQuickColorDialogImplPrivate.options, QQuickFileDialog.options, QQuickFileDialogImplPrivate.options, QQuickFolderDialog.options, QQuickFolderDialogImplPrivate.options, QQuickFontDialog.options, QQuickFontDialogImplPrivate.options, QQuickMessageDialogImplPrivate.options, QQuickPixmapKey.options, QSSGBufferManager::MeshData.options, QSSGQmlUtilities::OutputContext.options, QSvgRenderer.options, QSvgRendererPrivate.options, QWaylandKeymap.options, QWindowsOpenGLContextFormat.options, QWizard.options, testing.tools.test_runner._PerProcessConfig.options, options, process_name, skia_tester, and test_type.

Member Data Documentation

◆ delete_output_on_success

testing.tools.test_runner._PerProcessState.delete_output_on_success = config.delete_output_on_success

Definition at line 478 of file test_runner.py.

◆ enforce_expected_images

testing.tools.test_runner._PerProcessState.enforce_expected_images = config.enforce_expected_images

Definition at line 479 of file test_runner.py.

◆ features

testing.tools.test_runner._PerProcessState.features = config.features

Definition at line 481 of file test_runner.py.

◆ fixup_path

testing.tools.test_runner._PerProcessState.fixup_path = finder.ScriptPath('fixup_pdf_template.py')

Definition at line 485 of file test_runner.py.

◆ font_dir

testing.tools.test_runner._PerProcessState.font_dir = os.path.join(finder.TestingDir(), 'resources', 'fonts')

Definition at line 487 of file test_runner.py.

◆ image_differ

testing.tools.test_runner._PerProcessState.image_differ
Initial value:
= pngdiffer.PNGDiffer(finder,
self.options.reverse_byte_order,
config.rendering_option,
config.default_renderer)

Definition at line 496 of file test_runner.py.

◆ options

◆ pdfium_test_path

testing.tools.test_runner._PerProcessState.pdfium_test_path = config.GetPdfiumTestPath(finder)

Definition at line 484 of file test_runner.py.

◆ process_name

testing.tools.test_runner._PerProcessState.process_name = multiprocessing.current_process().name

Definition at line 501 of file test_runner.py.

Referenced by GetSkiaGoldTester().

◆ skia_tester

testing.tools.test_runner._PerProcessState.skia_tester = None

Definition at line 502 of file test_runner.py.

Referenced by GetSkiaGoldTester().

◆ source_dir

◆ test_dir

testing.tools.test_runner._PerProcessState.test_dir = config.test_dir

Definition at line 476 of file test_runner.py.

◆ test_suppressor

testing.tools.test_runner._PerProcessState.test_suppressor
Initial value:
= suppressor.Suppressor(
finder, self.features, self.options.disable_javascript,
self.options.disable_xfa, config.rendering_option)

Definition at line 493 of file test_runner.py.

◆ test_type

testing.tools.test_runner._PerProcessState.test_type = config.test_type

Definition at line 477 of file test_runner.py.

Referenced by GetSkiaGoldTester().

◆ text_diff_path

testing.tools.test_runner._PerProcessState.text_diff_path = finder.ScriptPath('text_diff.py')

Definition at line 486 of file test_runner.py.

◆ third_party_font_dir

testing.tools.test_runner._PerProcessState.third_party_font_dir = finder.ThirdPartyFontsDir()

Definition at line 488 of file test_runner.py.

◆ working_dir

testing.tools.test_runner._PerProcessState.working_dir = finder.WorkingDir(os.path.join('testing', self.test_dir))

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