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

Unified Diff: test/runner/load_suite_test.dart

Issue 1239693002: Pass actual TestPlatform and OperatingSystem values to Suite. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Update pubspec. Created 5 years, 5 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 | « test/runner/browser/loader_test.dart ('k') | test/runner/loader_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/load_suite_test.dart
diff --git a/test/runner/load_suite_test.dart b/test/runner/load_suite_test.dart
index 941bdeb9eba1788f4829ac706db17436ec5bf443..9a1d2078930ac9ec90ed9d5441dab80b5358a5ad 100644
--- a/test/runner/load_suite_test.dart
+++ b/test/runner/load_suite_test.dart
@@ -8,6 +8,7 @@ import 'dart:async';
import 'package:test/src/backend/state.dart';
import 'package:test/src/backend/suite.dart';
+import 'package:test/src/backend/test_platform.dart';
import 'package:test/src/runner/load_exception.dart';
import 'package:test/src/runner/load_suite.dart';
import 'package:test/test.dart';
@@ -107,11 +108,12 @@ void main() {
group("changeSuite()", () {
test("returns a new load suite with the same properties", () {
var innerSuite = new Suite([]);
- var suite = new LoadSuite("name", () => innerSuite, platform: "platform");
+ var suite = new LoadSuite("name", () => innerSuite,
+ platform: TestPlatform.vm);
expect(suite.tests, hasLength(1));
var newSuite = suite.changeSuite((suite) => suite);
- expect(newSuite.platform, equals("platform"));
+ expect(newSuite.platform, equals(TestPlatform.vm));
expect(newSuite.tests, equals(suite.tests));
});
« no previous file with comments | « test/runner/browser/loader_test.dart ('k') | test/runner/loader_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698