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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 11358045: Update test utils to generate wrappers with new library syntax and handle (Closed) Base URL: http://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
« no previous file with comments | « tools/testing/dart/browser_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
===================================================================
--- tools/testing/dart/test_suite.dart (revision 14431)
+++ tools/testing/dart/test_suite.dart (working copy)
@@ -976,13 +976,13 @@
RegExp staticCleanRegExp = const RegExp(r"// @static-clean");
RegExp leadingHashRegExp = const RegExp(r"^#", multiLine: true);
RegExp isolateStubsRegExp = const RegExp(r"// IsolateStubs=(.*)");
+ // TODO(gram) Clean these up once the old directives are not supported.
RegExp domImportRegExp =
- const RegExp(r"^#import.*(dart:(dom|html)|html\.dart).*\)",
- multiLine: true);
+ const RegExp(r"^[#]?import.*dart:html", multiLine: true);
RegExp libraryDefinitionRegExp =
- const RegExp(r"^#library\(", multiLine: true);
+ const RegExp(r"^[#]?library[\( ]", multiLine: true);
RegExp sourceOrImportRegExp =
- const RegExp(r"^#(source|import|resource)\(", multiLine: true);
+ const 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
« no previous file with comments | « tools/testing/dart/browser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698