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

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: Created 8 years, 10 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
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index d37bf2215f76f8c97423f85457d52a40d1c0e3eb..b839119b30fc9a6b63dc5a6b6125e743b0bb3e4d 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -418,7 +418,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'];
@@ -743,7 +743,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
« tests/language/src/ResourceTest.dart ('K') | « tests/language/src/ResourceTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698