OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |