Fix typos (#121171)
* Fix typos * lowercase animated & opacity * Undo typo fix --------- Co-authored-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
@@ -23,7 +23,7 @@ const double kDragSlopDefault = 20.0;
|
||||
|
||||
const String _defaultPlatform = kIsWeb ? 'web' : 'android';
|
||||
|
||||
/// Class that programatically interacts with the [Semantics] tree.
|
||||
/// Class that programmatically interacts with the [Semantics] tree.
|
||||
///
|
||||
/// Allows for testing of the [Semantics] tree, which is used by assistive
|
||||
/// technology, search engines, and other analysis software to determine the
|
||||
@@ -187,7 +187,7 @@ class SemanticsController {
|
||||
}
|
||||
|
||||
/// Whether or not the node is important for semantics. Should match most cases
|
||||
/// on the platforms, but certain edge cases will be inconsisent.
|
||||
/// on the platforms, but certain edge cases will be inconsistent.
|
||||
///
|
||||
/// Based on:
|
||||
///
|
||||
|
||||
@@ -74,7 +74,7 @@ class CommonFinders {
|
||||
/// [Text] and [Text.rich] widgets) are matched by comparing the
|
||||
/// [InlineSpan.toPlainText] with the given `pattern`.
|
||||
///
|
||||
/// For [EditableText] widgets, the `pattern` is always compared to the currentt
|
||||
/// For [EditableText] widgets, the `pattern` is always compared to the current
|
||||
/// value of the [EditableText.controller].
|
||||
///
|
||||
/// If the `skipOffstage` argument is true (the default), then this skips
|
||||
|
||||
@@ -876,7 +876,7 @@ void main() {
|
||||
await tester.pumpWidget(const MaterialApp(home: _SemanticsTestWidget()));
|
||||
|
||||
// We look for a SingleChildScrollView since the view itself isn't
|
||||
// important for accessiblity, so it won't show up in the traversal
|
||||
// important for accessibility, so it won't show up in the traversal
|
||||
expect(
|
||||
() => tester.semantics.simulatedAccessibilityTraversal(start: find.byType(SingleChildScrollView)),
|
||||
throwsA(isA<StateError>()),
|
||||
|
||||
@@ -340,7 +340,7 @@ void main() {
|
||||
// A (physical keyA, logical keyB) is released.
|
||||
//
|
||||
// Since this event is transmitted to HardwareKeyboard as-is, it will be rejected due to
|
||||
// inconsistent logical key. This does not indicate behaviral difference,
|
||||
// inconsistent logical key. This does not indicate behavioral difference,
|
||||
// since KeyData is will never send malformed data sequence in real applications.
|
||||
await _shouldThrow<AssertionError>(() =>
|
||||
simulateKeyUpEvent(LogicalKeyboardKey.keyB, physicalKey: PhysicalKeyboardKey.keyA));
|
||||
|
||||
@@ -147,7 +147,7 @@ void main() {
|
||||
expect(timeDiffs.length, records.length);
|
||||
for (final Duration diff in timeDiffs) {
|
||||
// Allow some freedom of time delay in real world.
|
||||
// TODO(pdblasi-google): The expected wiggle room should be -1, but occassional
|
||||
// TODO(pdblasi-google): The expected wiggle room should be -1, but occasional
|
||||
// results were reaching -6. This assert has been adjusted to reduce flakiness,
|
||||
// but the root cause is still unknown. (https://github.com/flutter/flutter/issues/109638)
|
||||
assert(diff.inMilliseconds > -7, 'timeDiffs were: $timeDiffs (offending time was ${diff.inMilliseconds}ms)');
|
||||
|
||||
Reference in New Issue
Block a user