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

Side by Side Diff: pkg/scheduled_test/test/descriptor/pattern_test.dart

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Anders' comment. Created 7 years, 1 month 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 | Annotate | Revision Log
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 '../metatest.dart'; 8 import '../metatest.dart';
9 import 'utils.dart'; 9 import 'utils.dart';
10 10
11 String sandbox; 11 String sandbox;
12 12
13 void main() { 13 void main(List<String> args, message) {
14 initialMessage = message;
15
14 setUpTimeout(); 16 setUpTimeout();
15 17
16 expectTestsPass("pattern().validate() succeeds if there's a file matching " 18 expectTestsPass("pattern().validate() succeeds if there's a file matching "
17 "the pattern and the child entry", () { 19 "the pattern and the child entry", () {
18 test('test', () { 20 test('test', () {
19 scheduleSandbox(); 21 scheduleSandbox();
20 22
21 d.file('foo', 'blap').create(); 23 d.file('foo', 'blap').create();
22 24
23 d.filePattern(new RegExp(r'f..'), 'blap').validate(); 25 d.filePattern(new RegExp(r'f..'), 'blap').validate();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 expect(errors.single, new isInstanceOf<ScheduleError>()); 154 expect(errors.single, new isInstanceOf<ScheduleError>());
153 expect(errors.single.error.toString(), matches( 155 expect(errors.single.error.toString(), matches(
154 r"^Multiple valid entries found in '[^']+' matching " 156 r"^Multiple valid entries found in '[^']+' matching "
155 r"\/f\.\./:\n" 157 r"\/f\.\./:\n"
156 r"\* faa\n" 158 r"\* faa\n"
157 r"\* fee\n" 159 r"\* fee\n"
158 r"\* foo$")); 160 r"\* foo$"));
159 }); 161 });
160 }, passing: ['test 2']); 162 }, passing: ['test 2']);
161 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698