Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 2984203002: Move the status file parser into its own package. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import 'dart:async'; 12 import 'dart:async';
13 import 'dart:collection'; 13 import 'dart:collection';
14 import 'dart:convert'; 14 import 'dart:convert';
15 // We need to use the 'io' prefix here, otherwise io.exitCode will shadow 15 // We need to use the 'io' prefix here, otherwise io.exitCode will shadow
16 // CommandOutput.exitCode in subclasses of CommandOutput. 16 // CommandOutput.exitCode in subclasses of CommandOutput.
17 import 'dart:io' as io; 17 import 'dart:io' as io;
18 import 'dart:math' as math; 18 import 'dart:math' as math;
19 19
20 import "package:status_file/expectation.dart";
21
20 import 'android.dart'; 22 import 'android.dart';
21 import 'browser_controller.dart'; 23 import 'browser_controller.dart';
22 import 'command.dart'; 24 import 'command.dart';
23 import 'command_output.dart'; 25 import 'command_output.dart';
24 import 'configuration.dart'; 26 import 'configuration.dart';
25 import 'dependency_graph.dart'; 27 import 'dependency_graph.dart';
26 import 'expectation.dart';
27 import 'runtime_configuration.dart'; 28 import 'runtime_configuration.dart';
28 import 'test_progress.dart'; 29 import 'test_progress.dart';
29 import 'test_suite.dart'; 30 import 'test_suite.dart';
30 import 'utils.dart'; 31 import 'utils.dart';
31 32
32 const int browserCrashExitCode = -10; 33 const int browserCrashExitCode = -10;
33 const int slowTimeoutMultiplier = 4; 34 const int slowTimeoutMultiplier = 4;
34 const int nonUtfFakeExitCode = 0xFFFD; 35 const int nonUtfFakeExitCode = 0xFFFD;
35 36
36 const cannotOpenDisplayMessage = 'Gtk-WARNING **: cannot open display'; 37 const cannotOpenDisplayMessage = 'Gtk-WARNING **: cannot open display';
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 } 1636 }
1636 } 1637 }
1637 1638
1638 void eventAllTestsDone() { 1639 void eventAllTestsDone() {
1639 for (var listener in _eventListener) { 1640 for (var listener in _eventListener) {
1640 listener.allDone(); 1641 listener.allDone();
1641 } 1642 }
1642 _allDone(); 1643 _allDone();
1643 } 1644 }
1644 } 1645 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698