| 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);
|
|
|