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

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

Issue 13132002: Version 0.4.3.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: 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
===================================================================
--- utils/tests/pub/validator_test.dart (revision 20601)
+++ utils/tests/pub/validator_test.dart (working copy)
@@ -121,19 +121,19 @@
});
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 @@
});
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 @@
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 @@
});
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