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 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 | 7 |
8 import '../../backend/live_test.dart'; | 8 import '../../backend/live_test.dart'; |
9 import '../../backend/state.dart'; | 9 import '../../backend/state.dart'; |
10 import '../../utils.dart'; | 10 import '../../utils.dart'; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 "${(duration.inSeconds % 60).toString().padLeft(2, '0')}"; | 307 "${(duration.inSeconds % 60).toString().padLeft(2, '0')}"; |
308 } | 308 } |
309 | 309 |
310 /// Returns a description of [liveTest]. | 310 /// Returns a description of [liveTest]. |
311 /// | 311 /// |
312 /// This differs from the test's own description in that it may also include | 312 /// This differs from the test's own description in that it may also include |
313 /// the suite's name. | 313 /// the suite's name. |
314 String _description(LiveTest liveTest) { | 314 String _description(LiveTest liveTest) { |
315 var name = liveTest.test.name; | 315 var name = liveTest.test.name; |
316 | 316 |
317 if (_printPath && liveTest.suite.path != null) { | 317 if (_printPath && liveTest.suite is! LoadSuite && |
| 318 liveTest.suite.path != null) { |
318 name = "${liveTest.suite.path}: $name"; | 319 name = "${liveTest.suite.path}: $name"; |
319 } | 320 } |
320 | 321 |
321 if (_printPlatform && liveTest.suite.platform != null) { | 322 if (_printPlatform && liveTest.suite.platform != null) { |
322 name = "[${liveTest.suite.platform.name}] $name"; | 323 name = "[${liveTest.suite.platform.name}] $name"; |
323 } | 324 } |
324 | 325 |
325 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor"; | 326 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor"; |
326 | 327 |
327 return name; | 328 return name; |
328 } | 329 } |
329 } | 330 } |
OLD | NEW |