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