remove unnecessary artificial delay in catalog example (#31822)
* remove unnecessary artificial delay
* fix test_driver README
diff --git a/examples/catalog/bin/screenshot_test.dart.template b/examples/catalog/bin/screenshot_test.dart.template
index 63fb285..50220b8 100644
--- a/examples/catalog/bin/screenshot_test.dart.template
+++ b/examples/catalog/bin/screenshot_test.dart.template
@@ -25,8 +25,6 @@
];
for (String path in paths) {
await driver.waitUntilNoTransientCallbacks();
- // TBD: when #11021 has been resolved, this shouldn't be necessary.
- await new Future<void>.delayed(const Duration(milliseconds: 500));
final List<int> pixels = await driver.screenshot();
final File file = new File(path);
await file.writeAsBytes(pixels);
diff --git a/examples/catalog/test_driver/README.md b/examples/catalog/test_driver/README.md
index 36263a9..8622c89 100644
--- a/examples/catalog/test_driver/README.md
+++ b/examples/catalog/test_driver/README.md
@@ -1 +1 @@
-The screenshot_test.dart and screenshot_test.dart files were generated by ../bin/sample_page.dart. They should not be checked in.
+The screenshot.dart and screenshot_test.dart files were generated by ../bin/sample_page.dart. They should not be checked in.