| Index: tools/testing/dart/test_suite.dart
|
| diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
|
| index 9dde66e80c242f8fec8cc610b7725bb284ed0b59..b820ef1e0d397b3589d7e8c1201a269f400848c3 100644
|
| --- a/tools/testing/dart/test_suite.dart
|
| +++ b/tools/testing/dart/test_suite.dart
|
| @@ -1180,26 +1180,26 @@ class StandardTestSuite extends TestSuite {
|
| * configurations, so it may not use [configuration].
|
| */
|
| static Map readOptionsFromFile(Path filePath) {
|
| - RegExp testOptionsRegExp = const RegExp(r"// VMOptions=(.*)");
|
| - RegExp dartOptionsRegExp = const RegExp(r"// DartOptions=(.*)");
|
| - RegExp otherScriptsRegExp = const RegExp(r"// OtherScripts=(.*)");
|
| - RegExp multiTestRegExp = const RegExp(r"/// [0-9][0-9]:(.*)");
|
| + RegExp testOptionsRegExp = new RegExp(r"// VMOptions=(.*)");
|
| + RegExp dartOptionsRegExp = new RegExp(r"// DartOptions=(.*)");
|
| + RegExp otherScriptsRegExp = new RegExp(r"// OtherScripts=(.*)");
|
| + RegExp multiTestRegExp = new RegExp(r"/// [0-9][0-9]:(.*)");
|
| RegExp multiHtmlTestRegExp =
|
| - const RegExp(r"useHtmlIndividualConfiguration()");
|
| + new RegExp(r"useHtmlIndividualConfiguration()");
|
| RegExp staticTypeRegExp =
|
| - const RegExp(r"/// ([0-9][0-9]:){0,1}\s*static type warning");
|
| + new RegExp(r"/// ([0-9][0-9]:){0,1}\s*static type warning");
|
| RegExp compileTimeRegExp =
|
| - const RegExp(r"/// ([0-9][0-9]:){0,1}\s*compile-time error");
|
| - RegExp staticCleanRegExp = const RegExp(r"// @static-clean");
|
| - RegExp leadingHashRegExp = const RegExp(r"^#", multiLine: true);
|
| - RegExp isolateStubsRegExp = const RegExp(r"// IsolateStubs=(.*)");
|
| + new RegExp(r"/// ([0-9][0-9]:){0,1}\s*compile-time error");
|
| + RegExp staticCleanRegExp = new RegExp(r"// @static-clean");
|
| + RegExp leadingHashRegExp = new RegExp(r"^#", multiLine: true);
|
| + RegExp isolateStubsRegExp = new RegExp(r"// IsolateStubs=(.*)");
|
| // TODO(gram) Clean these up once the old directives are not supported.
|
| RegExp domImportRegExp =
|
| - const RegExp(r"^[#]?import.*dart:html", multiLine: true);
|
| + new RegExp(r"^[#]?import.*dart:html", multiLine: true);
|
| RegExp libraryDefinitionRegExp =
|
| - const RegExp(r"^[#]?library[\( ]", multiLine: true);
|
| + new RegExp(r"^[#]?library[\( ]", multiLine: true);
|
| RegExp sourceOrImportRegExp =
|
| - const RegExp("^(#source|#import|part)[ \t]+[\('\"]", multiLine: true);
|
| + new RegExp("^(#source|#import|part)[ \t]+[\('\"]", multiLine: true);
|
|
|
| // Read the entire file into a byte buffer and transform it to a
|
| // String. This will treat the file as ascii but the only parts
|
|
|