Reland: fix and add painting web tests (#42689)

This commit is contained in:
Yegor
2019-10-14 21:22:44 -07:00
committed by GitHub
parent adf9d6f78a
commit 3bc3b323c4
7 changed files with 16 additions and 7 deletions

View File

@@ -5,12 +5,16 @@
@TestOn('chrome') // Uses web-only Flutter SDK
import 'dart:async';
import 'dart:ui' as ui;
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
void main() {
// Disabling tester emulation because this test relies on real message channel communication.
ui.debugEmulateFlutterTesterEnvironment = false; // ignore: undefined_prefixed_name
group('Plugin Event Channel', () {
setUp(() {
TestWidgetsFlutterBinding.ensureInitialized();

View File

@@ -4,6 +4,8 @@
@TestOn('chrome') // Uses web-only Flutter SDK
import 'dart:ui' as ui;
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
@@ -27,6 +29,9 @@ class TestPlugin {
}
void main() {
// Disabling tester emulation because this test relies on real message channel communication.
ui.debugEmulateFlutterTesterEnvironment = false; // ignore: undefined_prefixed_name
group('Plugin Registry', () {
setUp(() {
TestWidgetsFlutterBinding.ensureInitialized();