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

Side by Side Diff: pkg/watcher/test/directory_watcher/shared.dart

Issue 69013003: Fix some analyzer warnings and hints in pkg/watcher. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « pkg/watcher/lib/src/directory_watcher/resubscribable.dart ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/scheduled_test.dart'; 5 import 'package:scheduled_test/scheduled_test.dart';
6 6
7 import '../utils.dart'; 7 import '../utils.dart';
8 8
9 import 'dart:async';
10
11 sharedTests() { 9 sharedTests() {
12 test('does not notify for files that already exist when started', () { 10 test('does not notify for files that already exist when started', () {
13 // Make some pre-existing files. 11 // Make some pre-existing files.
14 writeFile("a.txt"); 12 writeFile("a.txt");
15 writeFile("b.txt"); 13 writeFile("b.txt");
16 14
17 startWatcher(); 15 startWatcher();
18 16
19 // Change one after the watcher is running. 17 // Change one after the watcher is running.
20 writeFile("b.txt", contents: "modified"); 18 writeFile("b.txt", contents: "modified");
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 deleteFile("dir/sub"); 229 deleteFile("dir/sub");
232 renameDir("old", "dir/sub"); 230 renameDir("old", "dir/sub");
233 inAnyOrder(() { 231 inAnyOrder(() {
234 expectRemoveEvent("dir/sub"); 232 expectRemoveEvent("dir/sub");
235 withPermutations((i, j, k) => 233 withPermutations((i, j, k) =>
236 expectAddEvent("dir/sub/sub-$i/sub-$j/file-$k.txt")); 234 expectAddEvent("dir/sub/sub-$i/sub-$j/file-$k.txt"));
237 }); 235 });
238 }); 236 });
239 }); 237 });
240 } 238 }
OLDNEW
« no previous file with comments | « pkg/watcher/lib/src/directory_watcher/resubscribable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698