Home
last modified time | relevance | path

Searched refs:goldenIdentifier (Results 1 – 13 of 13) sorted by relevance

/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DScubaExportStrategy.kt50 goldenIdentifier: String, in reportResult()
70 val pathRelativeToAssets = goldenPathManager.goldenImageIdentifierResolver(goldenIdentifier) in reportResult()
76 actual.writeToDevice(OutputFileType.IMAGE_ACTUAL, goldenIdentifier, testIdentifier).also { in reportResult()
81 writeToDevice(OutputFileType.IMAGE_DIFF, goldenIdentifier, testIdentifier).also { in reportResult()
87 writeToDevice(OutputFileType.IMAGE_EXPECTED, goldenIdentifier, testIdentifier).also { in reportResult()
93 writeToDevice(OutputFileType.RESULT_PROTO, goldenIdentifier, testIdentifier) { in reportResult()
100 writeToDevice(OutputFileType.RESULT_BIN_PROTO, goldenIdentifier, testIdentifier) { in reportResult()
112 goldenIdentifier: String, in getPathOnDeviceFor()
115 val imageSuffix = getOnDeviceImageSuffix(goldenIdentifier) in getPathOnDeviceFor()
116 val protoSuffix = getOnDeviceArtifactsSuffix(goldenIdentifier, resultProtoFileSuffix) in getPathOnDeviceFor()
[all …]
DDiffResultExportStrategy.kt37 goldenIdentifier: String, in reportResult()
71 goldenIdentifier: String, in reportResult()
81 goldenIdentifier, in reportResult()
DDevicelessDevMachineExportStrategy.kt43 goldenIdentifier: String, in <lambda>()
64 val imagePath = goldenPathManager.goldenImageIdentifierResolver(goldenIdentifier) in <lambda>()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DScreenshotTestRuleTest.kt64 val goldenIdentifier = "round_rect_gray" in goldenIdentifierResolver() constant
65 val first = loadBitmap(goldenIdentifier) in goldenIdentifierResolver()
67 first.assertAgainstGolden(rule, goldenIdentifier, matcher = PixelPerfectMatcher()) in goldenIdentifierResolver()
74 val goldenIdentifier = "defaultClock_largeClock_regionSampledColor" in goldenIdentifierResolver() constant
81 first.assertAgainstGolden(rule, goldenIdentifier, matcher = PixelPerfectMatcher()) in goldenIdentifierResolver()
91 val goldenIdentifier = "round_rect_green" in goldenIdentifierResolver() constant
94 goldenIdentifier, in goldenIdentifierResolver()
114 val goldenIdentifier = "qmc-folder2" in goldenIdentifierResolver() constant
115 first.assertAgainstGolden(rule, goldenIdentifier, matcher, regions) in goldenIdentifierResolver()
132 val goldenIdentifier = "round_rect_green" in goldenIdentifierResolver() constant
[all …]
/platform_testing/libraries/motion/src/platform/test/motion/truth/
DRecordedMotionSubject.kt54 val goldenIdentifier = getGoldenIdentifier(recordedMotion, goldenName) in timeSeriesMatchesGolden() constant
63 motionTestRule.readGoldenTimeSeries(goldenIdentifier, typeRegistry) in timeSeriesMatchesGolden()
65 check("Motion time-series $goldenIdentifier") in timeSeriesMatchesGolden()
76 failWithoutActual(fact("Golden [$goldenIdentifier] file is invalid", e)) in timeSeriesMatchesGolden()
80 motionTestRule.writeGeneratedTimeSeries(goldenIdentifier, recordedMotion, result) in timeSeriesMatchesGolden()
109 val goldenIdentifier = getGoldenIdentifier(recordedMotion, goldenName) in filmstripMatchesGolden() constant
111 bitmapDiffer.assertBitmapAgainstGolden(filmstripBitmap, goldenIdentifier, bitmapMatcher) in filmstripMatchesGolden()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotTestRule.kt95 private fun fetchExpectedImage(goldenIdentifier: String): Bitmap? { in <lambda>()
101 .open(goldenPathManager.goldenImageIdentifierResolver(goldenIdentifier)) in <lambda>()
132 goldenIdentifier: String, in <lambda>()
138 goldenIdentifier = goldenIdentifier, in <lambda>()
167 goldenIdentifier: String, in <lambda>()
171 if (!goldenIdentifier.matches("^[A-Za-z0-9_-]+$".toRegex())) { in <lambda>()
173 "The given golden identifier '$goldenIdentifier' does not satisfy the naming " + in <lambda>()
178 val expected = fetchExpectedImage(goldenIdentifier) in <lambda>()
182 goldenIdentifier = goldenIdentifier, in <lambda>()
205 goldenIdentifier = goldenIdentifier, in <lambda>()
[all …]
DExternalViewScreenshotTestRule.kt62 fun screenshotTest(goldenIdentifier: String, view: View, window: Window? = null) { in <lambda>()
70 .assertGoldenImage(goldenIdentifier) in <lambda>()
78 goldenIdentifier: String, in <lambda>()
105 screenshotTest(goldenIdentifier, rootView, activity.window) in <lambda>()
DViewScreenshotTestRule.kt130 goldenIdentifier: String, in <lambda>()
137 goldenIdentifier, in <lambda>()
152 goldenIdentifier: String, in <lambda>()
159 screenshotRule.assertBitmapAgainstGolden(bitmap, goldenIdentifier, matcher) in <lambda>()
167 goldenIdentifier: String, in <lambda>()
175 goldenIdentifier, in <lambda>()
DDialogScreenshotTest.kt30 goldenIdentifier: String, in <lambda>()
64 goldenIdentifier,
DBitmapDiffer.kt48 goldenIdentifier: String,
DFragmentScreenshotTestRule.kt111 goldenIdentifier: String, in <lambda>()
124 goldenIdentifier, in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/
DMotionTestRule.kt109 goldenIdentifier: String, in <lambda>()
112 val path = goldenPathManager.goldenIdentifierResolver(goldenIdentifier, JSON_EXTENSION) in <lambda>()
125 goldenIdentifier: String, in <lambda>()
129 requireValidGoldenIdentifier(goldenIdentifier) in <lambda>()
132 goldenPathManager.goldenIdentifierResolver(goldenIdentifier, JSON_EXTENSION) in <lambda>()
148 metadata.put("goldenIdentifier", goldenIdentifier) in <lambda>()
174 private fun requireValidGoldenIdentifier(goldenIdentifier: String) { in <lambda>()
175 require(goldenIdentifier.matches(GOLDEN_IDENTIFIER_REGEX)) { in <lambda>()
176 "Golden identifier '$goldenIdentifier' does not satisfy the naming " + in <lambda>()
/platform_testing/libraries/screenshot/utils/compose/src/platform/test/screenshot/utils/compose/
DComposeScreenshotTestRule.kt91 goldenIdentifier: String, in screenshotTest()
139 screenshotRule.assertBitmapAgainstGolden(bitmap, goldenIdentifier, matcher)
143 goldenIdentifier: String, in dialogScreenshotTest()
150 goldenIdentifier, in dialogScreenshotTest()