Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902)

This reverts commit 53e6876226.
This commit is contained in:
Zachary Anderson
2022-11-08 09:26:55 -08:00
committed by GitHub
parent a1432a9c5d
commit a84e369bd2
35 changed files with 1351 additions and 2093 deletions

View File

@@ -41,12 +41,12 @@ Future<ComparisonResult> compareLists(List<int> test, List<int> master) async {
/// * [matchesGoldenFile], the function from [flutter_test] that invokes the
/// comparator.
class DefaultWebGoldenComparator extends WebGoldenComparator {
/// Creates a new [DefaultWebGoldenComparator] for the specified [testUri].
/// Creates a new [DefaultWebGoldenComparator] for the specified [testFile].
///
/// Golden file keys will be interpreted as file paths relative to the
/// directory in which [testUri] resides.
/// directory in which [testFile] resides.
///
/// The [testUri] URL must represent a file.
/// The [testFile] URL must represent a file.
DefaultWebGoldenComparator(this.testUri);
/// The test file currently being executed.

View File

@@ -238,14 +238,6 @@ set webGoldenComparator(WebGoldenComparator value) {
_webGoldenComparator = value;
}
/// The URI of the test file currently being executed.
///
/// This variable is populated by the Flutter Tool automatically.
///
/// Golden file keys will be interpreted as file paths relative to the directory
/// in which this file resides.
late Uri webTestUri;
/// Whether golden files should be automatically updated during tests rather
/// than compared to the image bytes recorded by the tests.
///