| 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();
|
| });
|
|
|