Adds SemanticsNode Finders for searching the semantics tree (#127137)
* Pulled `FinderBase` out of `Finder` * `FinderBase` can be used for any object, not just elements * Terminology was updated to be more "find" related * Re-implemented `Finder` using `FinderBase<Element>` * Backwards compatibility maintained with `_LegacyFinderMixin` * Introduced base classes for SemanticsNode finders * Introduced basic SemanticsNode finders through `find.semantics` * Updated some relevant matchers to make use of the more generic `FinderBase` Closes #123634 Closes #115874
This commit is contained in:
@@ -56,7 +56,7 @@ Future<void> main() async {
|
||||
do {
|
||||
await controller.drag(list, const Offset(0.0, -30.0));
|
||||
await Future<void>.delayed(const Duration(milliseconds: 20));
|
||||
} while (!lastItem.precache());
|
||||
} while (!lastItem.tryEvaluate());
|
||||
|
||||
debugPrint('==== MEMORY BENCHMARK ==== DONE ====');
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ Future<void> main() async {
|
||||
do {
|
||||
await controller.drag(demoList, const Offset(0.0, -300.0));
|
||||
await Future<void>.delayed(const Duration(milliseconds: 20));
|
||||
} while (!demoItem.precache());
|
||||
} while (!demoItem.tryEvaluate());
|
||||
|
||||
// Ensure that the center of the "Text fields" item is visible
|
||||
// because that's where we're going to tap
|
||||
|
||||
Reference in New Issue
Block a user