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

Side by Side Diff: test/descriptor/async_test.dart

Issue 1152453009: pkg/scheduled_test: fix analyzer hints (Closed) Base URL: https://github.com/dart-lang/scheduled_test.git@master
Patch Set: nits Created 5 years, 6 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 | « pubspec.yaml ('k') | test/descriptor/directory_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 import 'package:metatest/metatest.dart';
6 import 'package:scheduled_test/descriptor.dart' as d; 5 import 'package:scheduled_test/descriptor.dart' as d;
7 import 'package:scheduled_test/scheduled_test.dart'; 6 import 'package:scheduled_test/scheduled_test.dart';
8 7
9 import 'utils.dart'; 8 import 'utils.dart';
10 9
11 void main() { 10 void main() {
12 expectTestPasses("async().create() forwards to file().create", () { 11 expectTestPasses("async().create() forwards to file().create", () {
13 scheduleSandbox(); 12 scheduleSandbox();
14 13
15 d.async(pumpEventQueue().then((_) { 14 d.async(pumpEventQueue().then((_) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return d.dir('dir', [ 78 return d.dir('dir', [
80 d.file('file1.txt', 'contents1'), 79 d.file('file1.txt', 'contents1'),
81 d.file('file2.txt', 'contents2') 80 d.file('file2.txt', 'contents2')
82 ]); 81 ]);
83 })).validate(); 82 })).validate();
84 }, (error) { 83 }, (error) {
85 expect(error.toString(), 84 expect(error.toString(),
86 matches(r"^Directory not found: '[^']+[\\/]dir'\.$")); 85 matches(r"^Directory not found: '[^']+[\\/]dir'\.$"));
87 }); 86 });
88 } 87 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | test/descriptor/directory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698