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

Side by Side Diff: pkg/scheduled_test/test/descriptor/nothing_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, 2 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 | 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 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:path/path.dart' as path; 7 import 'package:path/path.dart' as path;
8 import 'package:scheduled_test/descriptor.dart' as d; 8 import 'package:scheduled_test/descriptor.dart' as d;
9 import 'package:scheduled_test/scheduled_test.dart'; 9 import 'package:scheduled_test/scheduled_test.dart';
10 10
11 import '../metatest.dart'; 11 import '../metatest.dart';
12 import 'utils.dart'; 12 import 'utils.dart';
13 13
14 void main() { 14 void main(List<String> args, message) {
15 initialMessage = message;
16
15 setUpTimeout(); 17 setUpTimeout();
16 18
17 expectTestsPass("nothing().create() does nothing", () { 19 expectTestsPass("nothing().create() does nothing", () {
18 test('test', () { 20 test('test', () {
19 scheduleSandbox(); 21 scheduleSandbox();
20 22
21 d.nothing('foo').create(); 23 d.nothing('foo').create();
22 24
23 schedule(() { 25 schedule(() {
24 expect(new File(path.join(sandbox, 'foo')).exists(), 26 expect(new File(path.join(sandbox, 'foo')).exists(),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }); 77 });
76 78
77 test('test 2', () { 79 test('test 2', () {
78 expect(errors.single, new isInstanceOf<ScheduleError>()); 80 expect(errors.single, new isInstanceOf<ScheduleError>());
79 expect(errors.single.error.toString(), 81 expect(errors.single.error.toString(),
80 matches(r"^Expected nothing to exist at '[^']+[\\/]dir', but found a " 82 matches(r"^Expected nothing to exist at '[^']+[\\/]dir', but found a "
81 r"directory\.$")); 83 r"directory\.$"));
82 }); 84 });
83 }, passing: ['test 2']); 85 }, passing: ['test 2']);
84 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698