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

Unified Diff: tools/testing/dart/browser_test.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 | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/browser_test.dart
===================================================================
--- tools/testing/dart/browser_test.dart (revision 14431)
+++ tools/testing/dart/browser_test.dart (working copy)
@@ -47,20 +47,18 @@
String wrapDartTestInLibrary(Path test) =>
"""
-#library('libraryWrapper');
-#source('$test');
+library libraryWrapper;
+part '$test';
""";
String dartTestWrapper(Path dartHome, Path library) =>
"""
-#library('test');
+library test;
-#import('${dartHome.append('pkg/unittest/unittest.dart')}', prefix: 'unittest');
-#import('${dartHome.append('pkg/unittest/html_config.dart')}',
- prefix: 'config');
+import '${dartHome.append('pkg/unittest/unittest.dart')}' as unittest;
+import '${dartHome.append('pkg/unittest/html_config.dart')}' as config;
+import '${library}' as Test;
-#import('${library}', prefix: "Test");
-
main() {
config.useHtmlConfiguration();
unittest.group('', Test.main);
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698