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

Side by Side Diff: test/descriptor/pattern_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 | « test/descriptor/nothing_test.dart ('k') | test/scheduled_server_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:scheduled_test/descriptor.dart' as d; 5 import 'package:scheduled_test/descriptor.dart' as d;
6 import 'package:scheduled_test/scheduled_test.dart'; 6 import 'package:scheduled_test/scheduled_test.dart';
7 7
8 import 'package:metatest/metatest.dart';
9 import 'utils.dart'; 8 import 'utils.dart';
10 9
11 String sandbox; 10 String sandbox;
12 11
13 void main() { 12 void main() {
14 expectTestPasses("pattern().validate() succeeds if there's a file matching " 13 expectTestPasses("pattern().validate() succeeds if there's a file matching "
15 "the pattern and the child entry", () { 14 "the pattern and the child entry", () {
16 scheduleSandbox(); 15 scheduleSandbox();
17 16
18 d.file('foo', 'blap').create(); 17 d.file('foo', 'blap').create();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 d.filePattern(new RegExp(r'f..'), 'bar').validate(); 103 d.filePattern(new RegExp(r'f..'), 'bar').validate();
105 }, (error) { 104 }, (error) {
106 expect(error.toString(), matches( 105 expect(error.toString(), matches(
107 r"^Multiple valid entries found in '[^']+' matching " 106 r"^Multiple valid entries found in '[^']+' matching "
108 r"\/f\.\./:\n" 107 r"\/f\.\./:\n"
109 r"\* faa\n" 108 r"\* faa\n"
110 r"\* fee\n" 109 r"\* fee\n"
111 r"\* foo$")); 110 r"\* foo$"));
112 }); 111 });
113 } 112 }
OLDNEW
« no previous file with comments | « test/descriptor/nothing_test.dart ('k') | test/scheduled_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698