| 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. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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 "path.dart"; |
| 24 import "status_file_parser.dart"; | 24 import "status_file_parser.dart"; |
| 25 import "test_progress.dart"; | 25 import "test_progress.dart"; |
| 26 import "test_suite.dart"; | 26 import "test_suite.dart"; |
| 27 import "utils.dart"; | 27 import "utils.dart"; |
| 28 import 'record_and_replay.dart'; | 28 import 'record_and_replay.dart'; |
| 29 | 29 |
| 30 const int CRASHING_BROWSER_EXITCODE = -10; | 30 const int CRASHING_BROWSER_EXITCODE = -10; |
| 31 const int SLOW_TIMEOUT_MULTIPLIER = 8; | 31 const int SLOW_TIMEOUT_MULTIPLIER = 4; |
| 32 | 32 |
| 33 const MESSAGE_CANNOT_OPEN_DISPLAY = 'Gtk-WARNING **: cannot open display'; | 33 const MESSAGE_CANNOT_OPEN_DISPLAY = 'Gtk-WARNING **: cannot open display'; |
| 34 const MESSAGE_FAILED_TO_RUN_COMMAND = 'Failed to run command. return code=1'; | 34 const MESSAGE_FAILED_TO_RUN_COMMAND = 'Failed to run command. return code=1'; |
| 35 | 35 |
| 36 typedef void TestCaseEvent(TestCase testCase); | 36 typedef void TestCaseEvent(TestCase testCase); |
| 37 typedef void ExitCodeEvent(int exitCode); | 37 typedef void ExitCodeEvent(int exitCode); |
| 38 typedef void EnqueueMoreWork(ProcessQueue queue); | 38 typedef void EnqueueMoreWork(ProcessQueue queue); |
| 39 | 39 |
| 40 // Some IO tests use these variables and get confused if the host environment | 40 // Some IO tests use these variables and get confused if the host environment |
| 41 // variables are inherited so they are excluded. | 41 // variables are inherited so they are excluded. |
| (...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2966 } | 2966 } |
| 2967 } | 2967 } |
| 2968 | 2968 |
| 2969 void eventAllTestsDone() { | 2969 void eventAllTestsDone() { |
| 2970 for (var listener in _eventListener) { | 2970 for (var listener in _eventListener) { |
| 2971 listener.allDone(); | 2971 listener.allDone(); |
| 2972 } | 2972 } |
| 2973 _allDone(); | 2973 _allDone(); |
| 2974 } | 2974 } |
| 2975 } | 2975 } |
| OLD | NEW |