OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 String getHtmlContents(String title, | 5 String getHtmlContents(String title, |
6 Path controllerScript, | 6 Path controllerScript, |
7 Path dartJsScript, | 7 Path dartJsScript, |
8 String scriptType, | 8 String scriptType, |
9 Path sourceScript) => | 9 Path sourceScript) => |
10 """ | 10 """ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 String wrapDartTestInLibrary(Path test) => | 48 String wrapDartTestInLibrary(Path test) => |
49 """ | 49 """ |
50 library libraryWrapper; | 50 library libraryWrapper; |
51 part '$test'; | 51 part '$test'; |
52 """; | 52 """; |
53 | 53 |
54 String dartTestWrapper(Path dartHome, Path library) => | 54 String dartTestWrapper(Path dartHome, Path library) => |
55 """ | 55 """ |
56 library test; | 56 library test; |
57 | 57 |
58 import '${dartHome.append('pkg/unittest/unittest.dart')}' as unittest; | 58 import '${dartHome.append('pkg/unittest/lib/unittest.dart')}' as unittest; |
59 import '${dartHome.append('pkg/unittest/html_config.dart')}' as config; | 59 import '${dartHome.append('pkg/unittest/lib/html_config.dart')}' as config; |
60 import '${library}' as Test; | 60 import '${library}' as Test; |
61 | 61 |
62 main() { | 62 main() { |
63 config.useHtmlConfiguration(); | 63 config.useHtmlConfiguration(); |
64 unittest.group('', Test.main); | 64 unittest.group('', Test.main); |
65 } | 65 } |
66 """; | 66 """; |
67 | 67 |
OLD | NEW |