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

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

Issue 9448001: fix #resource tag in browser tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged Created 8 years, 9 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
« no previous file with comments | « tests/language/src/ResourceTest.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
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index fa255d56782b4bfa3b672eede1b8c32472a90389..0bc32efdea296f96604904b0974bc3fcecad5e4f 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -428,7 +428,7 @@ class StandardTestSuite implements TestSuite {
bool isLibraryDefinition = optionsFromFile['isLibraryDefinition'];
if (!isLibraryDefinition && optionsFromFile['containsSourceOrImport']) {
print('Warning for $filename: Browser tests require #library ' +
- 'in any file that uses #import or #source');
+ 'in any file that uses #import, #source, or #resource');
}
final String component = configuration['component'];
@@ -776,7 +776,7 @@ class StandardTestSuite implements TestSuite {
RegExp libraryDefinitionRegExp =
const RegExp(@"^#library\(", multiLine: true);
RegExp sourceOrImportRegExp =
- const RegExp(@"^#(source|import)\(", multiLine: true);
+ const RegExp(@"^#(source|import|resource)\(", 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 | « tests/language/src/ResourceTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698