Chromium Code Reviews| 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/lib/unittest.dart')}' as unittest; |
|
ahe
2012/11/01 21:23:44
Perhaps you should remove the '/lib' part until th
|
| +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); |