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

Side by Side Diff: lib/test.dart

Issue 1096693005: Support @Skip as a suite-level annotation. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 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 | « lib/src/runner/parse_metadata.dart ('k') | test/runner/parse_metadata_test.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) 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 test; 5 library test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 10
11 import 'src/backend/declarer.dart'; 11 import 'src/backend/declarer.dart';
12 import 'src/backend/invoker.dart'; 12 import 'src/backend/invoker.dart';
13 import 'src/backend/suite.dart'; 13 import 'src/backend/suite.dart';
14 import 'src/backend/test_platform.dart'; 14 import 'src/backend/test_platform.dart';
15 import 'src/frontend/timeout.dart'; 15 import 'src/frontend/timeout.dart';
16 import 'src/runner/reporter/no_io_compact.dart'; 16 import 'src/runner/reporter/no_io_compact.dart';
17 import 'src/utils.dart'; 17 import 'src/utils.dart';
18 18
19 export 'package:matcher/matcher.dart'; 19 export 'package:matcher/matcher.dart';
20 20
21 export 'src/frontend/expect.dart'; 21 export 'src/frontend/expect.dart';
22 export 'src/frontend/expect_async.dart'; 22 export 'src/frontend/expect_async.dart';
23 export 'src/frontend/future_matchers.dart'; 23 export 'src/frontend/future_matchers.dart';
24 export 'src/frontend/prints_matcher.dart'; 24 export 'src/frontend/prints_matcher.dart';
25 export 'src/frontend/skip.dart';
25 export 'src/frontend/test_on.dart'; 26 export 'src/frontend/test_on.dart';
26 export 'src/frontend/throws_matcher.dart'; 27 export 'src/frontend/throws_matcher.dart';
27 export 'src/frontend/throws_matchers.dart'; 28 export 'src/frontend/throws_matchers.dart';
28 export 'src/frontend/timeout.dart'; 29 export 'src/frontend/timeout.dart';
29 30
30 /// The global declarer. 31 /// The global declarer.
31 /// 32 ///
32 /// This is used if a test file is run directly, rather than through the runner. 33 /// This is used if a test file is run directly, rather than through the runner.
33 Declarer _globalDeclarer; 34 Declarer _globalDeclarer;
34 35
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 128
128 /// Handle an error that occurs outside of any test. 129 /// Handle an error that occurs outside of any test.
129 void handleExternalError(error, String message, [stackTrace]) { 130 void handleExternalError(error, String message, [stackTrace]) {
130 // TODO(nweiz): handle this better. 131 // TODO(nweiz): handle this better.
131 registerException(error, stackTrace); 132 registerException(error, stackTrace);
132 } 133 }
133 134
134 /// Registers an exception that was caught for the current test. 135 /// Registers an exception that was caught for the current test.
135 void registerException(error, [StackTrace stackTrace]) => 136 void registerException(error, [StackTrace stackTrace]) =>
136 Invoker.current.handleError(error, stackTrace); 137 Invoker.current.handleError(error, stackTrace);
OLDNEW
« no previous file with comments | « lib/src/runner/parse_metadata.dart ('k') | test/runner/parse_metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698