![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
| __init__ (self, output_path, diff_path, two_labels) | |
| Images (self) | |
| Left (self, test_case) | |
| Right (self, test_case) | |
| Diff (self, test_case) | |
Public Attributes | |
| output_path = output_path | |
| diff_path = diff_path | |
| two_labels = two_labels | |
| left = self._FindImages(self.two_labels[0]) | |
| right = self._FindImages(self.two_labels[1]) | |
| images = list(self.left.viewkeys() & self.right.viewkeys()) | |
| dict | diff |
Protected Member Functions | |
| _FindImages (self, label) | |
Contains the locations of input and output image files.
Definition at line 241 of file safetynet_image.py.
| testing.tools.safetynet_image.ImageLocations.__init__ | ( | self, | |
| output_path, | |||
| diff_path, | |||
| two_labels ) |
Constructor.
Args:
output_path: Path to directory with the pngs.
diff_path: Path to directory where the diffs will be generated.
two_labels: Tuple of two strings that name the subdirectories in
output_path containing the images.
Definition at line 245 of file safetynet_image.py.
|
protected |
Traverses a dir and builds a dict of all page images to compare in it. Args: label: name of subdirectory of output_path to traverse. Returns: Dict mapping page image names to the path of the image file.
Definition at line 273 of file safetynet_image.py.
References testing.tools.safetynet_image.ImageComparison.output_path, and output_path.
| testing.tools.safetynet_image.ImageLocations.Diff | ( | self, | |
| test_case ) |
Returns the path for a page diff image.
Definition at line 303 of file safetynet_image.py.
References QQuickEllipseShapePrivate::RoundedCorner.diff, QUnicodeTables::CaseConversion.diff, and diff.
| testing.tools.safetynet_image.ImageLocations.Images | ( | self | ) |
Returns a list of all page images present in both directories.
Definition at line 291 of file safetynet_image.py.
References QPdfPage.images, QQuickContext2DCommandBuffer.images, QTextureFileDataPrivate.images, and images.
| testing.tools.safetynet_image.ImageLocations.Left | ( | self, | |
| test_case ) |
Returns the path for a page image in the first subdirectory.
Definition at line 295 of file safetynet_image.py.
References _FS_RECTF_.left, CFX_CSSRect.left, CFX_FloatRect.left, CFX_GifImageInfo.left, CFX_RectF.left, FX_RECT.left, GLSL::BinaryExpressionAST.left, PathSimplifier::BoundingVolumeHierarchy::Node.left, QFragment< N >.left, QGeoCameraTilesPrivate::ClippedFootprint.left, QGIFFormat.left, QGraphicsLayoutPrivate.left, QKdPointTree::Node.left, QOpenGLRect.left, QQmlItemSelectionRangeValueType.left, QQmlJS::AST::BinaryExpression.left, QQmlJS::AST::CommaExpression.left, QQmlMarginsFValueType.left, QQmlMarginsValueType.left, QQmlRectFValueType.left, QQmlRectValueType.left, QQuick3DFrustumCamera.left, QQuickAnchors.left, QQuickAnchorSet.left, QQuickKeyNavigationAttached.left, QQuickKeyNavigationAttachedPrivate.left, QQuickScaleGrid.left, QQuickStyleMargins.left, QQuickSwipe.left, QQuickSwipePrivate.left, QRBTree< T >::Node.left, QScanConverter::Intersection.left, QSGAreaAllocatorNode.left, QSSGMeshBVHNode.left, QSSGRenderCamera::Frustum.left, QTextStreamPrivate::PaddingResult.left, QV4::Heap::ComplexString.left, QV4::SparseArrayNode.left, left, and TreeNode.left.
| testing.tools.safetynet_image.ImageLocations.Right | ( | self, | |
| test_case ) |
Returns the path for a page image in the second subdirectory.
Definition at line 299 of file safetynet_image.py.
References _FS_RECTF_.right, CFX_CSSRect.right, CFX_FloatRect.right, FX_RECT.right, GLSL::BinaryExpressionAST.right, PathSimplifier::BoundingVolumeHierarchy::Node.right, QFragment< N >.right, QGeoCameraTilesPrivate::ClippedFootprint.right, QGIFFormat.right, QGraphicsLayoutPrivate.right, QKdPointTree::Node.right, QOpenGLRect.right, QQmlItemSelectionRangeValueType.right, QQmlJS::AST::BinaryExpression.right, QQmlJS::AST::CommaExpression.right, QQmlMarginsFValueType.right, QQmlMarginsValueType.right, QQmlRectFValueType.right, QQmlRectValueType.right, QQuick3DFrustumCamera.right, QQuick3DNode.right, QQuickAnchors.right, QQuickAnchorSet.right, QQuickKeyNavigationAttached.right, QQuickKeyNavigationAttachedPrivate.right, QQuickScaleGrid.right, QQuickStyleMargins.right, QQuickSwipe.right, QQuickSwipePrivate.right, QRBTree< T >::Node.right, QScanConverter::Intersection.right, QSGAreaAllocatorNode.right, QSSGMeshBVHNode.right, QSSGRenderCamera::Frustum.right, QTextStreamPrivate::PaddingResult.right, QV4::Heap::ComplexString.right, QV4::SparseArrayNode.right, right, and TreeNode.right.
| dict testing.tools.safetynet_image.ImageLocations.diff |
Definition at line 269 of file safetynet_image.py.
Referenced by Diff().
| testing.tools.safetynet_image.ImageLocations.diff_path = diff_path |
Definition at line 255 of file safetynet_image.py.
| testing.tools.safetynet_image.ImageLocations.images = list(self.left.viewkeys() & self.right.viewkeys()) |
Definition at line 261 of file safetynet_image.py.
Referenced by Images().
| testing.tools.safetynet_image.ImageLocations.left = self._FindImages(self.two_labels[0]) |
Definition at line 258 of file safetynet_image.py.
Referenced by Left().
| testing.tools.safetynet_image.ImageLocations.output_path = output_path |
Definition at line 254 of file safetynet_image.py.
Referenced by _FindImages().
| testing.tools.safetynet_image.ImageLocations.right = self._FindImages(self.two_labels[1]) |
Definition at line 259 of file safetynet_image.py.
Referenced by Right().
| testing.tools.safetynet_image.ImageLocations.two_labels = two_labels |
Definition at line 256 of file safetynet_image.py.