Unverified Commit 3be48f34 authored by Wyte Krongapiradee's avatar Wyte Krongapiradee Committed by GitHub

[Flutter Driver] Update the comments regarding the default timeout of WaitFor...

[Flutter Driver] Update the comments regarding the default timeout of WaitFor and WaitForAbsent commands (#58771)
parent 49dc9b12
...@@ -53,7 +53,7 @@ class WaitFor extends CommandWithTarget { ...@@ -53,7 +53,7 @@ class WaitFor extends CommandWithTarget {
/// Creates a command that waits for the widget identified by [finder] to /// Creates a command that waits for the widget identified by [finder] to
/// appear within the [timeout] amount of time. /// 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}) WaitFor(SerializableFinder finder, {Duration timeout})
: super(finder, timeout: timeout); : super(finder, timeout: timeout);
...@@ -83,7 +83,7 @@ class WaitForAbsent extends CommandWithTarget { ...@@ -83,7 +83,7 @@ class WaitForAbsent extends CommandWithTarget {
/// Creates a command that waits for the widget identified by [finder] to /// Creates a command that waits for the widget identified by [finder] to
/// disappear within the [timeout] amount of time. /// 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}) WaitForAbsent(SerializableFinder finder, {Duration timeout})
: super(finder, timeout: timeout); : super(finder, timeout: timeout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment