[flutter_tools] remove suite channel access from web tests (#78915)

This commit is contained in:
Jonah Williams
2021-03-23 21:32:53 -07:00
committed by GitHub
parent cec6491838
commit 64d9650e51

View File

@@ -136,14 +136,6 @@ String generateTestEntrypoint({
StreamChannel serializeSuite(Function getMain(), {bool hidePrints = true}) => RemoteListener.start(getMain, hidePrints: hidePrints);
StreamChannel suiteChannel(String name) {
var manager = SuiteChannelManager.current;
if (manager == null) {
throw StateError('suiteChannel() may only be called within a test worker.');
}
return manager.connectOut(name);
}
StreamChannel postMessageChannel() {
var controller = StreamChannelController(sync: true);
window.onMessage.firstWhere((message) {