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

Unified Diff: utils/tests/pub/io_test.dart

Issue 13348002: Make pub warning-clean. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review change. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/scheduled_test/lib/scheduled_test.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/io_test.dart
diff --git a/utils/tests/pub/io_test.dart b/utils/tests/pub/io_test.dart
index 585d068b2e1127db5bd4e7a70c0ee8cc01ebd786..7ca3176a5fd71dd49b0dbb2612a3f512d2a3cf98 100644
--- a/utils/tests/pub/io_test.dart
+++ b/utils/tests/pub/io_test.dart
@@ -190,17 +190,17 @@ void testExistencePredicate(String name, bool predicate(String path),
group(name, () {
test('returns $forFile for a file', () {
expect(withTempDir((temp) {
- var path = path.join(temp, "test.txt");
- writeTextFile(path, "contents");
- expect(predicate(path), equals(forFile));
+ var file = path.join(temp, "test.txt");
+ writeTextFile(file, "contents");
+ expect(predicate(file), equals(forFile));
}), completes);
});
test('returns $forDirectory for a directory', () {
expect(withTempDir((temp) {
- var path = path.join(temp, "dir");
- createDir(path);
- expect(predicate(path), equals(forDirectory));
+ var file = path.join(temp, "dir");
+ createDir(file);
+ expect(predicate(file), equals(forDirectory));
}), completes);
});
« no previous file with comments | « pkg/scheduled_test/lib/scheduled_test.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698