| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /** | 5 /** |
| 6 * Classes and methods for executing tests. | 6 * Classes and methods for executing tests. |
| 7 * | 7 * |
| 8 * This module includes: | 8 * This module includes: |
| 9 * - Managing parallel execution of tests, including timeout checks. | 9 * - Managing parallel execution of tests, including timeout checks. |
| 10 * - Evaluating the output of each test as pass/fail/crash/timeout. | 10 * - Evaluating the output of each test as pass/fail/crash/timeout. |
| 11 */ | 11 */ |
| 12 library test_runner; | 12 library test_runner; |
| 13 | 13 |
| 14 import "dart:async"; | 14 import "dart:async"; |
| 15 import "dart:collection" show Queue; | 15 import "dart:collection" show Queue; |
| 16 import "dart:convert" show LineSplitter, UTF8, JSON; | 16 import "dart:convert" show LineSplitter, UTF8, JSON; |
| 17 // We need to use the 'io' prefix here, otherwise io.exitCode will shadow | 17 // We need to use the 'io' prefix here, otherwise io.exitCode will shadow |
| 18 // CommandOutput.exitCode in subclasses of CommandOutput. | 18 // CommandOutput.exitCode in subclasses of CommandOutput. |
| 19 import "dart:io" as io; | 19 import "dart:io" as io; |
| 20 import "dart:math" as math; | 20 import "dart:math" as math; |
| 21 import 'dependency_graph.dart' as dgraph; | 21 import 'dependency_graph.dart' as dgraph; |
| 22 import "browser_controller.dart"; | 22 import "browser_controller.dart"; |
| 23 import "path.dart"; |
| 23 import "status_file_parser.dart"; | 24 import "status_file_parser.dart"; |
| 24 import "test_progress.dart"; | 25 import "test_progress.dart"; |
| 25 import "test_suite.dart"; | 26 import "test_suite.dart"; |
| 26 import "utils.dart"; | 27 import "utils.dart"; |
| 27 import 'record_and_replay.dart'; | 28 import 'record_and_replay.dart'; |
| 28 | 29 |
| 29 const int CRASHING_BROWSER_EXITCODE = -10; | 30 const int CRASHING_BROWSER_EXITCODE = -10; |
| 30 const int SLOW_TIMEOUT_MULTIPLIER = 4; | 31 const int SLOW_TIMEOUT_MULTIPLIER = 4; |
| 31 | 32 |
| 32 const MESSAGE_CANNOT_OPEN_DISPLAY = 'Gtk-WARNING **: cannot open display'; | 33 const MESSAGE_CANNOT_OPEN_DISPLAY = 'Gtk-WARNING **: cannot open display'; |
| (...skipping 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2947 } | 2948 } |
| 2948 } | 2949 } |
| 2949 | 2950 |
| 2950 void eventAllTestsDone() { | 2951 void eventAllTestsDone() { |
| 2951 for (var listener in _eventListener) { | 2952 for (var listener in _eventListener) { |
| 2952 listener.allDone(); | 2953 listener.allDone(); |
| 2953 } | 2954 } |
| 2954 _allDone(); | 2955 _allDone(); |
| 2955 } | 2956 } |
| 2956 } | 2957 } |
| OLD | NEW |