run services tests on the Web (#41806)

This commit is contained in:
Yegor
2019-10-02 15:11:22 -07:00
committed by GitHub
parent 8c6d60bcfd
commit 33f4f8e6df
2 changed files with 5 additions and 3 deletions

View File

@@ -435,13 +435,12 @@ Future<void> _runTests() async {
}
Future<void> _runWebTests() async {
// TODO(yjbanov): re-enable when web test cirrus flakiness is resolved
await _runFlutterWebTest(path.join(flutterRoot, 'packages', 'flutter'), tests: <String>[
'test/foundation/',
'test/physics/',
'test/services/',
// TODO(yjbanov): re-enable when flakiness is resolved
// 'test/rendering/',
// 'test/services/',
// 'test/painting/',
// 'test/scheduler/',
// 'test/semantics/',

View File

@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(yjbanov): enable Web when https://github.com/flutter/engine/pull/12747 rolls into the framework.
@TestOn('!chrome')
import 'dart:convert';
import 'dart:typed_data';
import 'dart:ui' as ui;
@@ -39,7 +42,7 @@ void main() {
bool didDrainData = false;
binding.defaultBinaryMessenger.setMessageHandler(channel, (ByteData message) async {
expect(_getString(message), payload);
didDrainData= true;
didDrainData = true;
return null;
});
// Flush the event queue.