/third_party/flutter/flutter/packages/flutter_test/test/ |
D | goldens_test.dart | 85 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 …]
|
D | matchers_test.dart | 336 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/ |
D | flutter_goldens.dart | 36 /// 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/ |
D | goldens.dart | 13 /// 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/ |
D | SkGaussFilterTest.cpp | 32 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/ |
D | SkGaussFilterTest.cpp | 32 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()
|
D | RecordingXfermodeTest.cpp | 142 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/ |
D | lerp-study.cpp | 21 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()
|
D | bilerp-study.cpp | 21 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/ |
D | gyp-tests.el | 48 (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/ |
D | gyp-tests.el | 48 (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/ |
D | matrix_utils_unittest.cpp | 61 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/ |
D | matrix_utils_unittest.cpp | 61 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/ |
D | canvas_test.dart | 90 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/ |
D | zero_copy_stream_unittest.cc | 569 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/ |
D | flutter_goldens_test.dart | 125 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/ |
D | skia_client.dart | 17 // 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.
|
D | client.dart | 13 // 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/ |
D | BuildMetadataJsonFromXmlGoldenTest.java | 38 File golden = new File(srcDir, GOLDEN_FILE_NAME); in testBuildMetadataJsonFromXmlGolden() local 45 new BufferedReader(new InputStreamReader(new FileInputStream(golden), "UTF-8")); in testBuildMetadataJsonFromXmlGolden()
|
D | BuildShortNumberMetadataJsonFromXmlGoldenTest.java | 38 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/ |
D | matrix_utils_test.dart | 163 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/ |
D | gmock_output_test.py | 160 golden = golden_file.read().decode('utf-8') 164 self.assertEquals(golden, output)
|
/third_party/flutter/engine/flutter/tools/licenses/ |
D | README.md | 29 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/ |
D | README.md | 22 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/ |
D | diagnostics_test.dart | 185 String golden = '', 204 equalsIgnoringHashCodes(golden), 213 golden: 226 golden: 239 golden: 253 golden: 271 golden: 290 golden: 315 golden: 335 golden: [all …]
|