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

Unified Diff: utils/tests/pub/install/pub_install_test.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: utils/tests/pub/install/pub_install_test.dart
diff --git a/utils/tests/pub/install/pub_install_test.dart b/utils/tests/pub/install/pub_install_test.dart
index e06e4fc539ce9f8514a8a506b3d82867adacc254..4c953b03cd4bea7163a629ebfb719a842fea8fdc 100644
--- a/utils/tests/pub/install/pub_install_test.dart
+++ b/utils/tests/pub/install/pub_install_test.dart
@@ -15,7 +15,7 @@ main() {
dir(appPath, []).scheduleCreate();
schedulePub(args: ['install'],
- error: new RegExp(r'^Could not find a file named "pubspec\.yaml"'),
+ error: const RegExp(r'^Could not find a file named "pubspec\.yaml"'),
exitCode: 1);
run();
@@ -27,7 +27,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- error: new RegExp(r'^pubspec.yaml is missing the required "name" '
+ error: const RegExp(r'^pubspec.yaml is missing the required "name" '
r'field \(e\.g\. "name: myapp"\)\.'),
exitCode: 1);
@@ -44,7 +44,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
dir(packagesPath, [
dir("myapp_name", [
@@ -63,7 +63,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
dir(packagesPath, [
nothing("myapp_name")
@@ -88,9 +88,9 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- error: new RegExp(r'Warning: Package "foo" does not have a "lib" '
+ error: const RegExp(r'Warning: Package "foo" does not have a "lib" '
'directory.'),
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
run();
});
@@ -102,7 +102,7 @@ main() {
schedulePub(args: ['install'],
error: '',
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
run();
});
@@ -118,7 +118,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
dir(packagesPath, [
nothing('foo'),
@@ -137,7 +137,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
dir(appPath, [
dir("test", [
@@ -167,7 +167,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
dir(appPath, [
dir("example", [
@@ -197,7 +197,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
dir(appPath, [
dir("web", [
@@ -227,7 +227,7 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
dir(appPath, [
dir("bin", [
@@ -257,7 +257,7 @@ main() {
Warning: Package "myapp_name" is using a deprecated layout.
See http://www.dartlang.org/docs/pub-package-manager/package-layout.html for details.
''',
- output: new RegExp(r"Dependencies installed!$"));
+ output: const RegExp(r"Dependencies installed!$"));
run();
});
« no previous file with comments | « utils/tests/pub/install/hosted/unlock_if_new_is_unsatisfied_test.dart ('k') | utils/tests/pub/install/sdk/check_out_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698