Unverified Commit 64d9650e authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

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

parent cec64918
...@@ -136,14 +136,6 @@ String generateTestEntrypoint({ ...@@ -136,14 +136,6 @@ String generateTestEntrypoint({
StreamChannel serializeSuite(Function getMain(), {bool hidePrints = true}) => RemoteListener.start(getMain, hidePrints: hidePrints); 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() { StreamChannel postMessageChannel() {
var controller = StreamChannelController(sync: true); var controller = StreamChannelController(sync: true);
window.onMessage.firstWhere((message) { window.onMessage.firstWhere((message) {
......
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