Index: test/runner/configuration/configuration_test.dart |
diff --git a/test/runner/configuration/configuration_test.dart b/test/runner/configuration/configuration_test.dart |
index 45e29af0884fde9e037041f6b8381c0075678e19..fa56479b6714b31ac1d81320807455ab6f9c94d8 100644 |
--- a/test/runner/configuration/configuration_test.dart |
+++ b/test/runner/configuration/configuration_test.dart |
@@ -263,5 +263,28 @@ void main() { |
expect(merged.timeout, equals(new Timeout(new Duration(seconds: 2)))); |
}); |
}); |
+ |
+ group("for onPlatform", () { |
+ test("merges each nested configuration", () { |
+ var merged = new Configuration( |
+ onPlatform: { |
+ new PlatformSelector.parse("vm"): new Configuration(verboseTrace: true), |
+ new PlatformSelector.parse("chrome"): new Configuration(jsTrace: true) |
+ } |
+ ).merge(new Configuration( |
+ onPlatform: { |
+ new PlatformSelector.parse("chrome"): new Configuration(jsTrace: false), |
+ new PlatformSelector.parse("firefox"): new Configuration(skip: true) |
+ } |
+ )); |
+ |
+ expect(merged.onPlatform[new PlatformSelector.parse("vm")].verboseTrace, |
+ isTrue); |
+ expect(merged.onPlatform[new PlatformSelector.parse("chrome")].jsTrace, |
+ isFalse); |
+ expect(merged.onPlatform[new PlatformSelector.parse("firefox")].skip, |
+ isTrue); |
+ }); |
+ }); |
}); |
} |