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

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

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/browser_test.dart
===================================================================
--- tools/testing/dart/browser_test.dart (revision 14313)
+++ 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/lib/unittest.dart')}' as unittest;
+import '${dartHome.append('pkg/unittest/lib/html_config.dart')}' as config;
+import '${library}' as Test;
-#import('${library}', prefix: "Test");
-
main() {
config.useHtmlConfiguration();
unittest.group('', Test.main);

Powered by Google App Engine
This is Rietveld 408576698