Fix many dartdoc typos (#9822)
This commit is contained in:
@@ -54,8 +54,8 @@ enum EnginePhase {
|
||||
flushSemantics,
|
||||
|
||||
/// The final phase in the rendering library, wherein semantics information is
|
||||
/// sent to the embedder. See [SemanticsNode.sendSemanticsTree].
|
||||
sendSemanticsTree,
|
||||
/// sent to the embedder. See [SemanticsNode.sendSemanticsUpdate].
|
||||
sendSemanticsUpdate,
|
||||
}
|
||||
|
||||
/// Parts of the system that can generate pointer events that reach the test
|
||||
@@ -162,7 +162,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
|
||||
///
|
||||
/// See also [LiveTestWidgetsFlutterBindingFramePolicy], which affects how
|
||||
/// this method works when the test is run with `flutter run`.
|
||||
Future<Null> pump([ Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsTree ]);
|
||||
Future<Null> pump([ Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsUpdate ]);
|
||||
|
||||
/// Artificially calls dispatchLocaleChanged on the Widget binding,
|
||||
/// then flushes microtasks.
|
||||
@@ -512,7 +512,7 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
|
||||
int get microtaskCount => _fakeAsync.microtaskCount;
|
||||
|
||||
@override
|
||||
Future<Null> pump([ Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsTree ]) {
|
||||
Future<Null> pump([ Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsUpdate ]) {
|
||||
return TestAsyncUtils.guard(() {
|
||||
assert(inTest);
|
||||
assert(_clock != null);
|
||||
@@ -548,7 +548,7 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
|
||||
return result;
|
||||
}
|
||||
|
||||
EnginePhase _phase = EnginePhase.sendSemanticsTree;
|
||||
EnginePhase _phase = EnginePhase.sendSemanticsUpdate;
|
||||
|
||||
// Cloned from RendererBinding.drawFrame() but with early-exit semantics.
|
||||
@override
|
||||
@@ -568,7 +568,8 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
|
||||
renderView.compositeFrame(); // this sends the bits to the GPU
|
||||
if (_phase != EnginePhase.composite) {
|
||||
pipelineOwner.flushSemantics();
|
||||
assert(_phase == EnginePhase.flushSemantics || _phase == EnginePhase.sendSemanticsTree);
|
||||
assert(_phase == EnginePhase.flushSemantics ||
|
||||
_phase == EnginePhase.sendSemanticsUpdate);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -837,8 +838,8 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Null> pump([ Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsTree ]) {
|
||||
assert(newPhase == EnginePhase.sendSemanticsTree);
|
||||
Future<Null> pump([ Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsUpdate ]) {
|
||||
assert(newPhase == EnginePhase.sendSemanticsUpdate);
|
||||
assert(inTest);
|
||||
assert(!_expectingFrame);
|
||||
assert(_pendingFrame == null);
|
||||
|
||||
@@ -18,7 +18,7 @@ import 'finders.dart';
|
||||
/// See also:
|
||||
///
|
||||
/// * [findsWidgets], when you want the finder to find one or more widgets.
|
||||
/// * [findsOneWidgets], when you want the finder to find exactly one widget.
|
||||
/// * [findsOneWidget], when you want the finder to find exactly one widget.
|
||||
/// * [findsNWidgets], when you want the finder to find a specific number of widgets.
|
||||
const Matcher findsNothing = const _FindsWidgetMatcher(null, 0);
|
||||
|
||||
@@ -33,7 +33,7 @@ const Matcher findsNothing = const _FindsWidgetMatcher(null, 0);
|
||||
/// See also:
|
||||
///
|
||||
/// * [findsNothing], when you want the finder to not find anything.
|
||||
/// * [findsOneWidgets], when you want the finder to find exactly one widget.
|
||||
/// * [findsOneWidget], when you want the finder to find exactly one widget.
|
||||
/// * [findsNWidgets], when you want the finder to find a specific number of widgets.
|
||||
const Matcher findsWidgets = const _FindsWidgetMatcher(1, null);
|
||||
|
||||
@@ -64,7 +64,7 @@ const Matcher findsOneWidget = const _FindsWidgetMatcher(1, 1);
|
||||
///
|
||||
/// * [findsNothing], when you want the finder to not find anything.
|
||||
/// * [findsWidgets], when you want the finder to find one or more widgets.
|
||||
/// * [findsOneWidgets], when you want the finder to find exactly one widget.
|
||||
/// * [findsOneWidget], when you want the finder to find exactly one widget.
|
||||
Matcher findsNWidgets(int n) => new _FindsWidgetMatcher(n, n);
|
||||
|
||||
/// Asserts that the [Finder] locates the a single widget that has at
|
||||
@@ -81,7 +81,7 @@ Matcher findsNWidgets(int n) => new _FindsWidgetMatcher(n, n);
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [isOnStage], the opposite.
|
||||
/// * [isOnstage], the opposite.
|
||||
const Matcher isOffstage = const _IsOffstage();
|
||||
|
||||
/// Asserts that the [Finder] locates the a single widget that has no
|
||||
@@ -89,7 +89,7 @@ const Matcher isOffstage = const _IsOffstage();
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [isOffStage], the opposite.
|
||||
/// * [isOffstage], the opposite.
|
||||
const Matcher isOnstage = const _IsOnstage();
|
||||
|
||||
/// Asserts that the [Finder] locates the a single widget that has at
|
||||
@@ -173,7 +173,7 @@ const Matcher isAssertionError = const isInstanceOf<AssertionError>();
|
||||
///
|
||||
/// * [closeTo], which is identical except that the epsilon argument is
|
||||
/// required and not named.
|
||||
/// * [isInclusiveRange], which matches if the argument is in a specified
|
||||
/// * [inInclusiveRange], which matches if the argument is in a specified
|
||||
/// range.
|
||||
Matcher moreOrLessEquals(double value, { double epsilon: 1e-10 }) {
|
||||
return new _MoreOrLessEquals(value, epsilon);
|
||||
|
||||
@@ -181,7 +181,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
|
||||
/// this method works when the test is run with `flutter run`.
|
||||
Future<Null> pumpWidget(Widget widget, [
|
||||
Duration duration,
|
||||
EnginePhase phase = EnginePhase.sendSemanticsTree
|
||||
EnginePhase phase = EnginePhase.sendSemanticsUpdate,
|
||||
]) {
|
||||
return TestAsyncUtils.guard(() {
|
||||
binding.attachRootWidget(widget);
|
||||
@@ -204,7 +204,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
|
||||
@override
|
||||
Future<Null> pump([
|
||||
Duration duration,
|
||||
EnginePhase phase = EnginePhase.sendSemanticsTree
|
||||
EnginePhase phase = EnginePhase.sendSemanticsUpdate,
|
||||
]) {
|
||||
return TestAsyncUtils.guard(() => binding.pump(duration, phase));
|
||||
}
|
||||
@@ -235,7 +235,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
|
||||
/// matches the expected number of pumps.
|
||||
Future<int> pumpAndSettle([
|
||||
Duration duration = const Duration(milliseconds: 100),
|
||||
EnginePhase phase = EnginePhase.sendSemanticsTree,
|
||||
EnginePhase phase = EnginePhase.sendSemanticsUpdate,
|
||||
Duration timeout = const Duration(minutes: 10),
|
||||
]) {
|
||||
assert(duration != null);
|
||||
@@ -448,7 +448,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
|
||||
/// Returns the TestTextInput singleton.
|
||||
///
|
||||
/// Typical app tests will not need to use this value. To add text to widgets
|
||||
/// like [TextField] or [FormTextField], call [enterText].
|
||||
/// like [TextField] or [TextFormField], call [enterText].
|
||||
TestTextInput get testTextInput => binding.testTextInput;
|
||||
|
||||
/// Give the text input widget specified by [finder] the focus, as if the
|
||||
@@ -456,10 +456,10 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
|
||||
///
|
||||
/// The widget specified by [finder] must be an [EditableText] or have
|
||||
/// an [EditableText] descendant. For example `find.byType(TextField)`
|
||||
/// or `find.byType(FormTextField)`, or `find.byType(EditableText)`.
|
||||
/// or `find.byType(TextFormField)`, or `find.byType(EditableText)`.
|
||||
///
|
||||
/// Tests that just need to add text to widgets like [TextField]
|
||||
/// or [FormTextField] only need to call [enterText].
|
||||
/// or [TextFormField] only need to call [enterText].
|
||||
Future<Null> showKeyboard(Finder finder) async {
|
||||
return TestAsyncUtils.guard(() async {
|
||||
final EditableTextState editable = state(find.descendant(
|
||||
@@ -479,7 +479,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
|
||||
///
|
||||
/// The widget specified by [finder] must be an [EditableText] or have
|
||||
/// an [EditableText] descendant. For example `find.byType(TextField)`
|
||||
/// or `find.byType(FormTextField)`, or `find.byType(EditableText)`.
|
||||
/// or `find.byType(TextFormField)`, or `find.byType(EditableText)`.
|
||||
///
|
||||
/// To just give [finder] the focus without entering any text,
|
||||
/// see [showKeyboard].
|
||||
|
||||
Reference in New Issue
Block a user