From 72a72b375afd2d9a341d62f70a2f30a324744d33 Mon Sep 17 00:00:00 2001 From: done Date: Sat, 4 May 2019 03:25:29 +0900 Subject: [PATCH] remove unnecessary artificial delay in catalog example (#31822) * remove unnecessary artificial delay * fix test_driver README --- examples/catalog/bin/screenshot_test.dart.template | 2 -- examples/catalog/test_driver/README.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/catalog/bin/screenshot_test.dart.template b/examples/catalog/bin/screenshot_test.dart.template index 63fb2855bff..50220b87601 100644 --- a/examples/catalog/bin/screenshot_test.dart.template +++ b/examples/catalog/bin/screenshot_test.dart.template @@ -25,8 +25,6 @@ void main() { ]; for (String path in paths) { await driver.waitUntilNoTransientCallbacks(); - // TBD: when #11021 has been resolved, this shouldn't be necessary. - await new Future.delayed(const Duration(milliseconds: 500)); final List 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 36263a95f6c..8622c89978e 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.