Chromium Code Reviews| 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 |
|
floitsch
2013/05/22 16:26:29
Keep file as is. I don't see need for change.
Lasse Reichstein Nielsen
2013/05/24 06:02:49
Will do. Leftovers from trying to find out why the
| |
| 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 library lock_file_test; | 5 library lock_file_test; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:pathos/path.dart' as path; | 9 import 'package:pathos/path.dart' as path; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
| 11 | 11 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 d.file('file1.txt', 'contents'), | 86 d.file('file1.txt', 'contents'), |
| 87 d.file('file2.text', 'contents'), | 87 d.file('file2.text', 'contents'), |
| 88 d.dir('subdir', [ | 88 d.dir('subdir', [ |
| 89 d.file('subfile1.txt', 'subcontents'), | 89 d.file('subfile1.txt', 'subcontents'), |
| 90 d.file('subfile2.text', 'subcontents') | 90 d.file('subfile2.text', 'subcontents') |
| 91 ]) | 91 ]) |
| 92 ]).create(); | 92 ]).create(); |
| 93 | 93 |
| 94 schedule(() { | 94 schedule(() { |
| 95 expect(entrypoint.packageFiles(), completion(unorderedEquals([ | 95 expect(entrypoint.packageFiles(), completion(unorderedEquals([ |
| 96 path.join(root, '.gitignore'), | |
| 96 path.join(root, 'pubspec.yaml'), | 97 path.join(root, 'pubspec.yaml'), |
| 97 path.join(root, '.gitignore'), | |
| 98 path.join(root, 'file2.text'), | 98 path.join(root, 'file2.text'), |
| 99 path.join(root, 'subdir', 'subfile2.text') | 99 path.join(root, 'subdir', 'subfile2.text') |
| 100 ]))); | 100 ]))); |
| 101 }); | 101 }); |
| 102 }); | 102 }); |
| 103 | 103 |
| 104 commonTests(); | 104 commonTests(); |
| 105 }); | 105 }); |
| 106 } | 106 } |
| 107 | 107 |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 127 expect(entrypoint.packageFiles(), | 127 expect(entrypoint.packageFiles(), |
| 128 completion(equals([path.join(root, 'pubspec.yaml')]))); | 128 completion(equals([path.join(root, 'pubspec.yaml')]))); |
| 129 }); | 129 }); |
| 130 }); | 130 }); |
| 131 | 131 |
| 132 integration('ignores pubspec.lock files', () { | 132 integration('ignores pubspec.lock files', () { |
| 133 d.dir(appPath, [ | 133 d.dir(appPath, [ |
| 134 d.file('pubspec.lock'), | 134 d.file('pubspec.lock'), |
| 135 d.dir('subdir', [d.file('pubspec.lock')]) | 135 d.dir('subdir', [d.file('pubspec.lock')]) |
| 136 ]).create(); | 136 ]).create(); |
| 137 | |
| 138 schedule(() { | 137 schedule(() { |
| 139 expect(entrypoint.packageFiles(), | 138 expect(entrypoint.packageFiles(), |
| 140 completion(equals([path.join(root, 'pubspec.yaml')]))); | 139 completion(equals([path.join(root, 'pubspec.yaml')]))); |
| 141 }); | 140 }); |
| 142 }); | 141 }); |
| 143 | 142 |
| 144 integration('ignores packages directories', () { | 143 integration('ignores packages directories', () { |
| 145 d.dir(appPath, [ | 144 d.dir(appPath, [ |
| 146 d.dir('packages', [d.file('file.txt', 'contents')]), | 145 d.dir('packages', [d.file('file.txt', 'contents')]), |
| 147 d.dir('subdir', [ | 146 d.dir('subdir', [ |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 completion(unorderedEquals([ | 214 completion(unorderedEquals([ |
| 216 path.join(root, 'packages', 'subfile1.txt'), | 215 path.join(root, 'packages', 'subfile1.txt'), |
| 217 path.join(root, 'packages', 'subfile2.txt'), | 216 path.join(root, 'packages', 'subfile2.txt'), |
| 218 path.join(root, 'packages', 'subsubdir', 'subsubfile1.txt'), | 217 path.join(root, 'packages', 'subsubdir', 'subsubfile1.txt'), |
| 219 path.join(root, 'packages', 'subsubdir', 'subsubfile2.txt') | 218 path.join(root, 'packages', 'subsubdir', 'subsubfile2.txt') |
| 220 ]))); | 219 ]))); |
| 221 }); | 220 }); |
| 222 }); | 221 }); |
| 223 }); | 222 }); |
| 224 } | 223 } |
| OLD | NEW |