Prepares semantics_update_test for upcoming heading level changes (#149671)

The pr https://github.com/flutter/engine/pull/41435 adds a new property into updateNode. 

The pr migrate the method in framework first to unblock the engine pr
This commit is contained in:
chunhtai 2024-06-04 15:24:11 -07:00 committed by GitHub
parent 9d1de7b674
commit 72b45e1dfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -212,6 +212,7 @@ class SemanticsUpdateBuilderSpy extends Fake implements ui.SemanticsUpdateBuilde
required Int32List childrenInTraversalOrder,
required Int32List childrenInHitTestOrder,
required Int32List additionalActions,
int headingLevel = 0,
}) {
// Makes sure we don't send the same id twice.
assert(!observations.containsKey(id));