| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 schedule; | 5 library schedule; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import '../../../../pkg/unittest/lib/unittest.dart' as unittest; |
| 11 | 11 |
| 12 import 'mock_clock.dart' as mock_clock; | 12 import 'mock_clock.dart' as mock_clock; |
| 13 import 'schedule_error.dart'; | 13 import 'schedule_error.dart'; |
| 14 import 'substitute_future.dart'; | 14 import 'substitute_future.dart'; |
| 15 import 'task.dart'; | 15 import 'task.dart'; |
| 16 import 'value_future.dart'; | 16 import 'value_future.dart'; |
| 17 | 17 |
| 18 /// The schedule of tasks to run for a single test. This has three separate task | 18 /// The schedule of tasks to run for a single test. This has three separate task |
| 19 /// queues: [tasks], [onComplete], and [onException]. It also provides | 19 /// queues: [tasks], [onComplete], and [onException]. It also provides |
| 20 /// visibility into the current state of the schedule. | 20 /// visibility into the current state of the schedule. |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 var childLines = child.toString().split("\n"); | 546 var childLines = child.toString().split("\n"); |
| 547 lines.add(" $prefix ${childLines.first}"); | 547 lines.add(" $prefix ${childLines.first}"); |
| 548 lines.addAll(childLines.skip(1).map((line) => " | $line")); | 548 lines.addAll(childLines.skip(1).map((line) => " | $line")); |
| 549 } | 549 } |
| 550 } | 550 } |
| 551 | 551 |
| 552 return lines.join("\n"); | 552 return lines.join("\n"); |
| 553 }).join("\n"); | 553 }).join("\n"); |
| 554 } | 554 } |
| 555 } | 555 } |
| OLD | NEW |