Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: lib/src/runner/browser/compiler_pool.dart

Issue 1704773002: Load web tests using the plugin infrastructure. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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';

Powered by Google App Engine
This is Rietveld 408576698