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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 } | 285 } |
286 | 286 |
287 bool _equal(BrowserTestCommand other) => | 287 bool _equal(BrowserTestCommand other) => |
288 super._equal(other) && | 288 super._equal(other) && |
289 browser == other.browser && | 289 browser == other.browser && |
290 url == other.url && | 290 url == other.url && |
291 identical(configuration, other.configuration) && | 291 identical(configuration, other.configuration) && |
292 retry == other.retry; | 292 retry == other.retry; |
293 | 293 |
294 String get reproductionCommand { | 294 String get reproductionCommand { |
295 var parts = [Platform.resolvedExecutable, | 295 var parts = [io.Platform.resolvedExecutable, |
296 'tools/testing/dart/launch_browser.dart', | 296 'tools/testing/dart/launch_browser.dart', |
297 browser, | 297 browser, |
298 url]; | 298 url]; |
299 return parts.map(escapeCommandLineArgument).join(' '); | 299 return parts.map(escapeCommandLineArgument).join(' '); |
300 } | 300 } |
301 | 301 |
302 int get maxNumRetries => 4; | 302 int get maxNumRetries => 4; |
303 } | 303 } |
304 | 304 |
305 class BrowserHtmlTestCommand extends BrowserTestCommand { | 305 class BrowserHtmlTestCommand extends BrowserTestCommand { |
(...skipping 2660 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 |