Migrate to ChannelBuffers.push (#76288)

* Migrate to ChannelBuffers.push

* Move TestDefaultBinaryMessenger to its own file

* Apply deprecations and fix usages
This commit is contained in:
Ian Hickson
2021-04-23 15:39:34 -07:00
committed by GitHub
parent 39554279b0
commit c26ed03c8a
74 changed files with 889 additions and 596 deletions

View File

@@ -5,7 +5,7 @@
import 'dart:async';
import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
import 'package:test/test.dart';
import 'package:webdriver/async_io.dart';
/// The following test is used as a simple smoke test for verifying Flutter
@@ -33,6 +33,7 @@ void main() {
test('enable accessibility', () async {
await driver.enableAccessibility();
// TODO(ianh): this delay violates our style guide. We should instead wait for a triggering event.
await Future<void>.delayed(const Duration(seconds: 2));
// Elements with tag "flt-semantics" would show up after enabling