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

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

Issue 524153002: Sharing metatest logic between unittest and scheduled_test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: status fixes Created 6 years, 3 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:async'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 import 'package:path/path.dart' as path; 8 import 'package:path/path.dart' as path;
9 import 'package:scheduled_test/descriptor.dart' as d; 9 import 'package:scheduled_test/descriptor.dart' as d;
10 import 'package:scheduled_test/scheduled_test.dart'; 10 import 'package:scheduled_test/scheduled_test.dart';
11 11
12 import '../metatest.dart'; 12 import 'package:metatest/metatest.dart';
13 import 'utils.dart'; 13 import 'utils.dart';
14 14
15 void main(_, message) { 15 void main() => initTests(_test);
16
17 void _test(message) {
16 initMetatest(message); 18 initMetatest(message);
17 19
18 setUpTimeout(); 20 setUpTimeout();
19 21
20 expectTestsPass("directory().create() creates a directory and its contents", 22 expectTestsPass("directory().create() creates a directory and its contents",
21 () { 23 () {
22 test('test', () { 24 test('test', () {
23 scheduleSandbox(); 25 scheduleSandbox();
24 26
25 d.dir('dir', [ 27 d.dir('dir', [
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 isDirectoryDescriptor('subdir', [ 433 isDirectoryDescriptor('subdir', [
432 isFileDescriptor('subfile1.txt', 'subcontents1'), 434 isFileDescriptor('subfile1.txt', 'subcontents1'),
433 isFileDescriptor('subfile2.txt', 'subcontents2') 435 isFileDescriptor('subfile2.txt', 'subcontents2')
434 ]), 436 ]),
435 isFileDescriptor('file1.txt', 'contents1'), 437 isFileDescriptor('file1.txt', 'contents1'),
436 isFileDescriptor('file2.txt', 'contents2') 438 isFileDescriptor('file2.txt', 'contents2')
437 ])); 439 ]));
438 }); 440 });
439 }); 441 });
440 } 442 }
OLDNEW
« no previous file with comments | « pkg/scheduled_test/test/descriptor/async_test.dart ('k') | pkg/scheduled_test/test/descriptor/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698