| 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 part of test_suite; | 5 part of test_suite; |
| 6 | 6 |
| 7 String getHtmlContents(String title, | 7 String getHtmlContents(String title, |
| 8 Path controllerScript, | 8 Path controllerScript, |
| 9 Path dartJsScript, | 9 Path dartJsScript, |
| 10 String scriptType, | 10 String scriptType, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 String wrapDartTestInLibrary(Path test) => | 51 String wrapDartTestInLibrary(Path test) => |
| 52 """ | 52 """ |
| 53 library libraryWrapper; | 53 library libraryWrapper; |
| 54 part '$test'; | 54 part '$test'; |
| 55 """; | 55 """; |
| 56 | 56 |
| 57 String dartTestWrapper(Path dartHome, Path library) => | 57 String dartTestWrapper(Path dartHome, Path library) => |
| 58 """ | 58 """ |
| 59 library test; | 59 library test; |
| 60 | 60 |
| 61 import 'package:unittest/unittest.dart' as unittest; | 61 import '${dartHome.append('pkg/unittest/lib/unittest.dart')}' as unittest; |
| 62 import 'package:unittest/html_config.dart' as config; | 62 import '${dartHome.append('pkg/unittest/lib/html_config.dart')}' as config; |
| 63 import '${library}' as Test; | 63 import '${library}' as Test; |
| 64 | 64 |
| 65 main() { | 65 main() { |
| 66 config.useHtmlConfiguration(); | 66 config.useHtmlConfiguration(); |
| 67 unittest.group('', Test.main); | 67 unittest.group('', Test.main); |
| 68 } | 68 } |
| 69 """; | 69 """; |
| 70 | 70 |
| OLD | NEW |