Home
last modified time | relevance | path

Searched refs:golden (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/flutter/flutter/packages/flutter_test/test/
Dgoldens_test.dart85 Future<bool> doComparison([ String golden = 'golden.png' ]) {
86 final Uri uri = fs.file(fix(golden)).uri;
94 test('when golden file is in same folder as test', () async {
95 fs.file(fix('/golden.png')).writeAsBytesSync(_kExpectedBytes);
100 test('when golden file is in subfolder of test', () async {
109 test('and golden file is in same folder as test', () async {
110 fs.file(fix('/foo/bar/golden.png'))
115 final bool success = await doComparison('golden.png');
119 test('and golden file is in subfolder of test', () async {
120 fs.file(fix('/foo/bar/baz/golden.png'))
[all …]
Dmatchers_test.dart336 expect(comparator.golden, Uri.parse('foo.png'));
401 expect(comparator.golden, Uri.parse('foo.png'));
632 Uri golden;
635 Future<bool> compare(Uint8List imageBytes, Uri golden) {
638 this.golden = golden;
651 Future<void> update(Uri golden, Uint8List imageBytes) {
653 this.golden = golden;
/third_party/flutter/flutter/packages/flutter_goldens/lib/
Dflutter_goldens.dart36 /// Abstract base class golden file comparator specific to the `flutter/flutter`
39 /// Creates a [FlutterGoldenFileComparator] that will resolve golden file
53 /// The directory to which golden file URIs will be resolved in [compare] and
66 Future<void> update(Uri golden, Uint8List imageBytes) async {
67 final File goldenFile = getGoldenFile(golden);
82 /// Returns the golden [File] identified by the given [Uri].
92 /// A [FlutterGoldenFileComparator] for testing golden images against the
97 /// minimum. To satisfy this requirement, this comparator retrieves the golden
110 /// that tests golden images through Skia Gold.
112 /// Creates a [FlutterGoldensRepositoryFileComparator] that will test golden
[all …]
/third_party/flutter/flutter/packages/flutter_test/lib/src/
Dgoldens.dart13 /// Compares rasterized image bytes against a golden image file.
24 /// Compares [imageBytes] against the golden file identified by [golden].
27 /// [imageBytes] matches the golden file's bytes within the tolerance defined
33 /// The method by which [golden] is located and by which its bytes are loaded
37 Future<bool> compare(Uint8List imageBytes, Uri golden);
39 /// Updates the golden file identified by [golden] with [imageBytes].
45 /// The method by which [golden] is located and by which its bytes are written
47 Future<void> update(Uri golden, Uint8List imageBytes);
49 /// Returns a new golden file [Uri] to incorporate any [version] number with
53 /// historical golden files.
[all …]
/third_party/flutter/skia/tests/
DSkGaussFilterTest.cpp32 double sigma; std::vector<double> golden; in DEF_TEST() local
33 std::tie(sigma, golden) = test; in DEF_TEST()
40 REPORTER_ASSERT(r, static_cast<size_t>(n) == golden.size()); in DEF_TEST()
43 for (size_t i = 0; i < golden.size(); i++) { in DEF_TEST()
44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
/third_party/skia/tests/
DSkGaussFilterTest.cpp32 double sigma; std::vector<double> golden; in DEF_TEST() local
33 std::tie(sigma, golden) = test; in DEF_TEST()
40 REPORTER_ASSERT(r, static_cast<size_t>(n) == golden.size()); in DEF_TEST()
43 for (size_t i = 0; i < golden.size(); i++) { in DEF_TEST()
44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
DRecordingXfermodeTest.cpp142 BitmapBackedCanvasStrategy golden(drawer.imageInfo()); in DEF_TEST() local
154 const SkBitmap& goldenBM = golden.recordAndReplay(drawer, clip, mode); in DEF_TEST()
/third_party/skia/experimental/lowp-basic/
Dlerp-study.cpp21 void log(int16_t golden, int16_t candidate) { in log()
22 int diff = candidate - golden; in log()
25 diff_8_bits += candidate != golden; in log()
91 int16_t golden = floor(l + 0.5f); in check_lerp() local
93 stats.log(golden, candidate); in check_lerp()
Dbilerp-study.cpp21 void log(int16_t golden, int16_t candidate) { in log()
22 int64_t diff = candidate - golden; in log()
25 diff_8_bits += candidate != golden; in log()
106 int16_t golden = floor(l + 0.5); in check_bilerp() local
110 stats.log(golden, candidate); in check_bilerp()
/third_party/node/tools/gyp/tools/emacs/
Dgyp-tests.el48 (let ((golden (read-golden-sample sample))
50 (should (equal golden fontified))
51 (should (equal (text-face-properties golden)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/tools/emacs/
Dgyp-tests.el48 (let ((golden (read-golden-sample sample))
50 (should (equal golden fontified))
51 (should (equal (text-face-properties golden)
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmatrix_utils_unittest.cpp61 void CheckMatrixCloseToGolden(float *golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument
67 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden()
71 void CheckMatrixCloseToGolden(const std::vector<float> &golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument
75 for (size_t i = 0; i < golden.size(); i++) in CheckMatrixCloseToGolden()
77 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden()
276 Mat4 golden(elementsExpected); in TEST() local
279 CheckMat4ExactlyEq(r, golden); in TEST()
730 Mat4 golden(elementsExpected); in TEST() local
733 CheckMat4ExactlyEq(r, golden); in TEST()
774 Mat4 golden(elementsExpected); in TEST() local
[all …]
/third_party/skia/third_party/externals/angle2/src/common/
Dmatrix_utils_unittest.cpp61 void CheckMatrixCloseToGolden(float *golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument
67 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden()
71 void CheckMatrixCloseToGolden(const std::vector<float> &golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument
75 for (size_t i = 0; i < golden.size(); i++) in CheckMatrixCloseToGolden()
77 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden()
276 Mat4 golden(elementsExpected); in TEST() local
279 CheckMat4ExactlyEq(r, golden); in TEST()
730 Mat4 golden(elementsExpected); in TEST() local
733 CheckMat4ExactlyEq(r, golden); in TEST()
774 Mat4 golden(elementsExpected); in TEST() local
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dcanvas_test.dart90 Future<bool> fuzzyCompareImages(Image golden, Image img) async {
91 if (golden.width != img.width || golden.height != img.height) {
94 int getPixel(ByteData data, int x, int y) => data.getUint32((x + y * golden.width) * 4);
95 final ByteData goldenData = await golden.toByteData();
97 for (int y = 0; y < golden.height; y++) {
98 for (int x = 0; x < golden.width; x++) {
/third_party/protobuf/src/google/protobuf/io/
Dzero_copy_stream_unittest.cc569 std::string golden; in TEST_F() local
570 GOOGLE_CHECK_OK(File::GetContents(golden_filename, &golden, true)); in TEST_F()
573 std::string gzip_compressed = Compress(golden, options); in TEST_F()
576 std::string not_compressed = Compress(golden, options); in TEST_F()
581 std::string zlib_compressed = Compress(golden, options); in TEST_F()
585 EXPECT_GT(not_compressed.size(), golden.size()); in TEST_F()
594 EXPECT_TRUE(Uncompress(not_compressed) == golden); in TEST_F()
595 EXPECT_TRUE(Uncompress(gzip_compressed) == golden); in TEST_F()
596 EXPECT_TRUE(Uncompress(zlib_compressed) == golden); in TEST_F()
663 std::string golden = "abcdefghijklmnopqrstuvwxyz"; in TEST_F() local
[all …]
/third_party/flutter/flutter/packages/flutter_goldens/test/
Dflutter_goldens_test.dart125 test('throws if golden file is not found', () async {
134 test('returns false if golden bytes do not match', () async {
142 test('returns true if golden bytes match', () async {
152 test('creates golden file if it does not already exist', () async {
160 test('overwrites golden bytes if golden file already exist', () async {
/third_party/flutter/flutter/packages/flutter_goldens_client/lib/
Dskia_client.dart17 // If you are here trying to figure out how to use golden files in the Flutter
19 // https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package%3Aflutter
28 /// for golden file testing.
62 /// Prepares the local work space for golden file testing and calls the
69 /// The [workDirectory] parameter specifies the current directory that golden
201 /// configuration that generated the given golden file.
Dclient.dart13 // If you are here trying to figure out how to use golden files in the Flutter
15 // https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package%3Aflutter
23 /// Creates a handle to the local environment of golden file images.
77 /// Prepares the local clone of the `flutter/goldens` repository for golden
145 ..writeln('To reset your client to a clean state, and lose any local golden test changes:')
/third_party/libphonenumber/tools/java/java-build/test/com/google/i18n/phonenumbers/
DBuildMetadataJsonFromXmlGoldenTest.java38 File golden = new File(srcDir, GOLDEN_FILE_NAME); in testBuildMetadataJsonFromXmlGolden() local
45 new BufferedReader(new InputStreamReader(new FileInputStream(golden), "UTF-8")); in testBuildMetadataJsonFromXmlGolden()
DBuildShortNumberMetadataJsonFromXmlGoldenTest.java38 File golden = new File(srcDir, GOLDEN_FILE_NAME); in testBuildMetadataJsonFromXmlGolden() local
46 new BufferedReader(new InputStreamReader(new FileInputStream(golden), "UTF-8")); in testBuildMetadataJsonFromXmlGolden()
/third_party/flutter/flutter/packages/flutter/test/painting/
Dmatrix_utils_test.dart163 final Rect golden = _vectorWiseTransformRect(transform, rect);
166 within<Rect>(distance: 0.00001, from: golden),
174 // golden implementation of the optimized `MatrixUtils.transformPoint`
183 // one point at a time. This function is used as the golden implementation of the
/third_party/googletest/googlemock/test/
Dgmock_output_test.py160 golden = golden_file.read().decode('utf-8')
164 self.assertEquals(golden, output)
/third_party/flutter/engine/flutter/tools/licenses/
DREADME.md29 dart lib/main.dart --src ../../.. --out ../../../out/licenses --golden ../../ci/licenses_golden
53 time the golden file changes in a way that involves changes to
63 do it! When reviewing patches, if you see a change to the golden
/third_party/glslang/gtests/
DREADME.md22 line option, which, if supplied, will overwrite the golden files under
24 This serves as an easy way to update golden files.
/third_party/flutter/flutter/packages/flutter/test/foundation/
Ddiagnostics_test.dart185 String golden = '',
204 equalsIgnoringHashCodes(golden),
213 golden:
226 golden:
239 golden:
253 golden:
271 golden:
290 golden:
315 golden:
335 golden:
[all …]

1234