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

Unified Diff: sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart

Issue 16034002: Use helper methods for running pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Get rid of unnecessary RegExps in tests. Created 7 years, 7 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
Index: sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart
diff --git a/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart b/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart
index 053c9225ad8922471c05c6991e125a46c1203320..35648173e87b8e274dbebd1c1adc2b0e80d49001 100644
--- a/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart
+++ b/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart
@@ -24,15 +24,6 @@ main() {
})
]).create();
- // TODO(rnystrom): The "\" in a Windows path gets treated like a regex
- // character, so hack escape. A better fix is to use a literal string
- // instead of a RegExp to validate, but that requires us to move the
- // stack traces out of the stderr when we invoke pub. See also: #4706.
- var escapePath = badPath.replaceAll(r"\", r"\\");
-
- schedulePub(args: ['install'],
- error:
- new RegExp("Could not find package 'foo' at '$escapePath'."),
- exitCode: 1);
+ pubInstall(error: "Could not find package 'foo' at '$badPath'.");
});
}

Powered by Google App Engine
This is Rietveld 408576698