Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 04c539f

Browse files
committed
Make CkPicture resurrectable
1 parent b9a0b5e commit 04c539f

16 files changed

+1288
-199
lines changed

lib/web_ui/dev/goldens_lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
repository: https://github.com/flutter/goldens.git
2-
revision: 06e0333b8371965dce5dc05e140e6dfb454f33fa
2+
revision: ac75f12c6e93461369e1391da6cc20bf8cb08829

lib/web_ui/dev/test_runner.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,11 @@ class TestCommand extends Command<bool> with ArgUtils {
458458
continue;
459459
}
460460

461-
if (path.split(testFilePath.relativeToWebUi).contains('golden_tests')) {
461+
// All files under test/golden_tests are considered golden tests.
462+
final bool isUnderGoldenTestsDirectory = path.split(testFilePath.relativeToWebUi).contains('golden_tests');
463+
// Any file whose name ends with "_golden_test.dart" is run as a golden test.
464+
final bool isGoldenTestFile = path.basename(testFilePath.relativeToWebUi).endsWith('_golden_test.dart');
465+
if (isUnderGoldenTestsDirectory || isGoldenTestFile) {
462466
screenshotTestFiles.add(testFilePath);
463467
} else {
464468
unitTestFiles.add(testFilePath);

0 commit comments

Comments
 (0)