OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library unittest.backend.suite; | 5 library test.backend.suite; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'metadata.dart'; | 9 import 'metadata.dart'; |
10 import 'operating_system.dart'; | 10 import 'operating_system.dart'; |
11 import 'test.dart'; | 11 import 'test.dart'; |
12 import 'test_platform.dart'; | 12 import 'test_platform.dart'; |
13 | 13 |
14 /// A test suite. | 14 /// A test suite. |
15 /// | 15 /// |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 /// Returns a new suite with the given fields updated. | 47 /// Returns a new suite with the given fields updated. |
48 Suite change({String path, String platform, Metadata metadata, | 48 Suite change({String path, String platform, Metadata metadata, |
49 Iterable<Test> tests}) { | 49 Iterable<Test> tests}) { |
50 if (path == null) path = this.path; | 50 if (path == null) path = this.path; |
51 if (platform == null) platform = this.platform; | 51 if (platform == null) platform = this.platform; |
52 if (metadata == null) metadata = this.metadata; | 52 if (metadata == null) metadata = this.metadata; |
53 if (tests == null) tests = this.tests; | 53 if (tests == null) tests = this.tests; |
54 return new Suite(tests, path: path, platform: platform, metadata: metadata); | 54 return new Suite(tests, path: path, platform: platform, metadata: metadata); |
55 } | 55 } |
56 } | 56 } |
OLD | NEW |