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

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

Issue 1097183003: Add an "onPlatform" parameter to test() and group(). (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 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
« no previous file with comments | « lib/src/runner/browser/server.dart ('k') | lib/src/runner/vm/isolate_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/loader.dart
diff --git a/lib/src/runner/loader.dart b/lib/src/runner/loader.dart
index 4b1f3d7447c1fe29874be04299603522abdc4156..a6db18d7904bd404930fe26633a5eaae728f9b4a 100644
--- a/lib/src/runner/loader.dart
+++ b/lib/src/runner/loader.dart
@@ -148,9 +148,7 @@ class Loader {
assert(platform.isBrowser);
return _loadBrowserFile(path, platform, metadata);
}).then((suite) {
- if (suite == null) return;
-
- controller.add(suite.filter(platform, os: currentOS));
+ if (suite != null) controller.add(suite);
}).catchError(controller.addError);
}).then((_) => controller.close());
« no previous file with comments | « lib/src/runner/browser/server.dart ('k') | lib/src/runner/vm/isolate_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698