Unverified Commit d46d77dc authored by Dan Field's avatar Dan Field Committed by GitHub

Make test more flexible for new args from vm (#51217)

parent 7034bc57
......@@ -73,7 +73,6 @@ void _expectTimelineEvents(
List<Map<String, dynamic>> expected,
) {
for (final Map<String, dynamic> event in events) {
for (int index = 0; index < expected.length; index += 1) {
if (expected[index]['name'] == event['name']) {
final Map<String, dynamic> expectedArgs = expected[index]['args'] as Map<String, dynamic>;
......@@ -91,9 +90,6 @@ void _expectTimelineEvents(
}
bool _mapsEqual(Map<String, dynamic> expectedArgs, Map<String, dynamic> args) {
if (expectedArgs.length != args.length) {
return false;
}
for (final String key in expectedArgs.keys) {
if (expectedArgs[key] != args[key]) {
return false;
......
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