| 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 import 'group.dart'; | 
| 5 import 'metadata.dart'; | 6 import 'metadata.dart'; | 
| 6 import 'operating_system.dart'; | 7 import 'operating_system.dart'; | 
| 7 import 'group.dart'; |  | 
| 8 import 'test.dart'; | 8 import 'test.dart'; | 
| 9 import 'test_platform.dart'; | 9 import 'test_platform.dart'; | 
| 10 | 10 | 
| 11 /// A test suite. | 11 /// A test suite. | 
| 12 /// | 12 /// | 
| 13 /// A test suite is a set of tests that are intended to be run together and that | 13 /// A test suite is a set of tests that are intended to be run together and that | 
| 14 /// share default configuration. | 14 /// share default configuration. | 
| 15 class Suite { | 15 class Suite { | 
| 16   /// The platform on which the suite is running, or `null` if that platform is | 16   /// The platform on which the suite is running, or `null` if that platform is | 
| 17   /// unknown. | 17   /// unknown. | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 64   /// Returns a new suite with all tests matching [test] removed. | 64   /// Returns a new suite with all tests matching [test] removed. | 
| 65   /// | 65   /// | 
| 66   /// Unlike [GroupEntry.filter], this never returns `null`. If all entries are | 66   /// Unlike [GroupEntry.filter], this never returns `null`. If all entries are | 
| 67   /// filtered out, it returns an empty suite. | 67   /// filtered out, it returns an empty suite. | 
| 68   Suite filter(bool callback(Test test)) { | 68   Suite filter(bool callback(Test test)) { | 
| 69     var filtered = group.filter(callback); | 69     var filtered = group.filter(callback); | 
| 70     if (filtered == null) filtered = new Group.root([], metadata: metadata); | 70     if (filtered == null) filtered = new Group.root([], metadata: metadata); | 
| 71     return new Suite(filtered, platform: platform, os: os, path: path); | 71     return new Suite(filtered, platform: platform, os: os, path: path); | 
| 72   } | 72   } | 
| 73 } | 73 } | 
| OLD | NEW | 
|---|