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

Side by Side Diff: test/descriptor/directory_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/async_test.dart ('k') | test/descriptor/file_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 '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 'package:metatest/metatest.dart';
13 import 'utils.dart'; 12 import 'utils.dart';
14 13
15 void main() { 14 void main() {
16 expectTestPasses("directory().create() creates a directory and its contents", 15 expectTestPasses("directory().create() creates a directory and its contents",
17 () { 16 () {
18 scheduleSandbox(); 17 scheduleSandbox();
19 18
20 d.dir('dir', [ 19 d.dir('dir', [
21 d.dir('subdir', [ 20 d.dir('subdir', [
22 d.file('subfile1.txt', 'subcontents1'), 21 d.file('subfile1.txt', 'subcontents1'),
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 "descriptor", path.join(sandbox, 'dir')); 380 "descriptor", path.join(sandbox, 'dir'));
382 expect(descriptor, isDirectoryDescriptor('descriptor', [ 381 expect(descriptor, isDirectoryDescriptor('descriptor', [
383 isDirectoryDescriptor('subdir', [ 382 isDirectoryDescriptor('subdir', [
384 isFileDescriptor('subfile1.txt', 'subcontents1') 383 isFileDescriptor('subfile1.txt', 'subcontents1')
385 ]), 384 ]),
386 isFileDescriptor('file1.txt', 'contents1') 385 isFileDescriptor('file1.txt', 'contents1')
387 ])); 386 ]));
388 }); 387 });
389 }); 388 });
390 } 389 }
OLDNEW
« no previous file with comments | « test/descriptor/async_test.dart ('k') | test/descriptor/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698