Index: lib/src/runner/browser/compiler_pool.dart |
diff --git a/lib/src/runner/browser/compiler_pool.dart b/lib/src/runner/browser/compiler_pool.dart |
index f2942ef6345bcbbcfa9c7cda2622e61a025afb69..5f45825de230615b3f1dceace11330b8ec07b4ab 100644 |
--- a/lib/src/runner/browser/compiler_pool.dart |
+++ b/lib/src/runner/browser/compiler_pool.dart |
@@ -57,14 +57,18 @@ class CompilerPool { |
return withTempDir((dir) async { |
var wrapperPath = p.join(dir, "runInBrowser.dart"); |
new File(wrapperPath).writeAsStringSync(''' |
-import "package:test/src/runner/browser/iframe_listener.dart"; |
+ import "package:stream_channel/stream_channel.dart"; |
-import "${p.toUri(p.absolute(dartPath))}" as test; |
+ import "package:test/src/runner/plugin/remote_platform_helpers.dart"; |
+ import "package:test/src/runner/browser/post_message_channel.dart"; |
-void main(_) { |
- IframeListener.start(() => test.main); |
-} |
-'''); |
+ import "${p.toUri(p.absolute(dartPath))}" as test; |
+ |
+ main(_) async { |
+ var channel = serializeSuite(() => test.main, hidePrints: false); |
+ postMessageChannel().pipe(channel); |
+ } |
+ '''); |
var dart2jsPath = p.join(sdkDir, 'bin', 'dart2js'); |
if (Platform.isWindows) dart2jsPath += '.bat'; |