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

Unified Diff: lib/src/runner/loader.dart

Issue 1731503002: Add a hack to globally register a platform plugin. (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/loader.dart
diff --git a/lib/src/runner/loader.dart b/lib/src/runner/loader.dart
index cd0802666e59b36f289539a407987ae46b863ca4..18e1a9199a4b121a51c58c221f21dc659f998855 100644
--- a/lib/src/runner/loader.dart
+++ b/lib/src/runner/loader.dart
@@ -20,6 +20,7 @@ import 'load_exception.dart';
import 'load_suite.dart';
import 'parse_metadata.dart';
import 'plugin/environment.dart';
+import 'plugin/hack_register_platform.dart';
import 'plugin/platform.dart';
import 'runner_suite.dart';
import 'vm/platform.dart';
@@ -59,6 +60,10 @@ class Loader {
TestPlatform.safari,
TestPlatform.internetExplorer
], () => BrowserPlatform.start(_config, root: root));
+
+ platformCallbacks.forEach((platform, plugin) {
+ registerPlatformPlugin([platform], plugin);
+ });
}
/// Registers a [PlatformPlugin] for [platforms].
« no previous file with comments | « no previous file | lib/src/runner/plugin/hack_register_platform.dart » ('j') | lib/src/runner/plugin/hack_register_platform.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698