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

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

Issue 13116020: Clean up the semantics of io.dart operations w.r.t. symlinks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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 | « utils/tests/pub/test_pub.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/validator_test.dart
diff --git a/utils/tests/pub/validator_test.dart b/utils/tests/pub/validator_test.dart
index 12dbd8287a7ac325e92421222ceb5ad1ad67a677..9b3b583de965b046dd8249868456a3a1e7d3541b 100644
--- a/utils/tests/pub/validator_test.dart
+++ b/utils/tests/pub/validator_test.dart
@@ -121,19 +121,19 @@ main() {
});
integration('has a COPYING file', () {
- schedule(() => deleteFile(path.join(sandboxDir, appPath, 'LICENSE')));
+ schedule(() => deleteEntry(path.join(sandboxDir, appPath, 'LICENSE')));
d.file(path.join(appPath, 'COPYING'), '').create();
expectNoValidationError(license);
});
integration('has a prefixed LICENSE file', () {
- schedule(() => deleteFile(path.join(sandboxDir, appPath, 'LICENSE')));
+ schedule(() => deleteEntry(path.join(sandboxDir, appPath, 'LICENSE')));
d.file(path.join(appPath, 'MIT_LICENSE'), '').create();
expectNoValidationError(license);
});
integration('has a suffixed LICENSE file', () {
- schedule(() => deleteFile(path.join(sandboxDir, appPath, 'LICENSE')));
+ schedule(() => deleteEntry(path.join(sandboxDir, appPath, 'LICENSE')));
d.file(path.join(appPath, 'LICENSE.md'), '').create();
expectNoValidationError(license);
});
@@ -269,7 +269,7 @@ main() {
});
integration('has no LICENSE file', () {
- schedule(() => deleteFile(path.join(sandboxDir, appPath, 'LICENSE')));
+ schedule(() => deleteEntry(path.join(sandboxDir, appPath, 'LICENSE')));
expectValidationError(license);
});
@@ -332,7 +332,7 @@ main() {
integration('has a single library named differently than the package', () {
schedule(() =>
- deleteFile(path.join(sandboxDir, appPath, "lib", "test_pkg.dart")));
+ deleteEntry(path.join(sandboxDir, appPath, "lib", "test_pkg.dart")));
d.dir(appPath, [
d.dir("lib", [d.file("best_pkg.dart", "int i = 0;")])
]).create();
@@ -340,19 +340,19 @@ main() {
});
integration('has no lib directory', () {
- schedule(() => deleteDir(path.join(sandboxDir, appPath, "lib")));
+ schedule(() => deleteEntry(path.join(sandboxDir, appPath, "lib")));
expectValidationError(lib);
});
integration('has an empty lib directory', () {
schedule(() =>
- deleteFile(path.join(sandboxDir, appPath, "lib", "test_pkg.dart")));
+ deleteEntry(path.join(sandboxDir, appPath, "lib", "test_pkg.dart")));
expectValidationError(lib);
});
integration('has a lib directory containing only src', () {
schedule(() =>
- deleteFile(path.join(sandboxDir, appPath, "lib", "test_pkg.dart")));
+ deleteEntry(path.join(sandboxDir, appPath, "lib", "test_pkg.dart")));
d.dir(appPath, [
d.dir("lib", [
d.dir("src", [d.file("test_pkg.dart", "int i = 0;")])
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698