[Flutter Driver] Update the comments regarding the default timeout of WaitFor and WaitForAbsent commands (#58771)

This commit is contained in:
Wyte Krongapiradee
2020-06-12 00:30:02 +08:00
committed by GitHub
parent 49dc9b1227
commit 3be48f34f2

View File

@@ -53,7 +53,7 @@ class WaitFor extends CommandWithTarget {
/// Creates a command that waits for the widget identified by [finder] to
/// appear within the [timeout] amount of time.
///
/// If [timeout] is not specified the command times out after 5 seconds.
/// If [timeout] is not specified, the command defaults to no timeout.
WaitFor(SerializableFinder finder, {Duration timeout})
: super(finder, timeout: timeout);
@@ -83,7 +83,7 @@ class WaitForAbsent extends CommandWithTarget {
/// Creates a command that waits for the widget identified by [finder] to
/// disappear within the [timeout] amount of time.
///
/// If [timeout] is not specified the command times out after 5 seconds.
/// If [timeout] is not specified, the command defaults to no timeout.
WaitForAbsent(SerializableFinder finder, {Duration timeout})
: super(finder, timeout: timeout);