| 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 String scriptType, | 8 String scriptType, |
| 9 Path sourceScript) => | 9 Path sourceScript) => |
| 10 """ | 10 """ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 src="/root_dart/pkg/unittest/lib/test_controller.js"> | 26 src="/root_dart/pkg/unittest/lib/test_controller.js"> |
| 27 </script> | 27 </script> |
| 28 <script type="$scriptType" src="$sourceScript" onerror="externalError(null)"> | 28 <script type="$scriptType" src="$sourceScript" onerror="externalError(null)"> |
| 29 </script> | 29 </script> |
| 30 <script type="text/javascript" | 30 <script type="text/javascript" |
| 31 src="/root_dart/pkg/browser/lib/dart.js"></script> | 31 src="/root_dart/pkg/browser/lib/dart.js"></script> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| 34 """; | 34 """; |
| 35 | 35 |
| 36 String getHtmlLayoutContents(String scriptType, String sourceScript) => | 36 String getHtmlLayoutContents(String scriptType, Path sourceScript) => |
| 37 """ | 37 """ |
| 38 <!DOCTYPE html> | 38 <!DOCTYPE html> |
| 39 <html> | 39 <html> |
| 40 <head> | 40 <head> |
| 41 <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 41 <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 42 </head> | 42 </head> |
| 43 <body> | 43 <body> |
| 44 <script type="text/javascript"> | 44 <script type="text/javascript"> |
| 45 if (navigator.webkitStartDart) navigator.webkitStartDart(); | 45 if (navigator.webkitStartDart) navigator.webkitStartDart(); |
| 46 </script> | 46 </script> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 64 import '$unitTest/unittest.dart' as unittest; | 64 import '$unitTest/unittest.dart' as unittest; |
| 65 import '$unitTest/html_config.dart' as config; | 65 import '$unitTest/html_config.dart' as config; |
| 66 import '$libraryPathComponent' as Test; | 66 import '$libraryPathComponent' as Test; |
| 67 | 67 |
| 68 main() { | 68 main() { |
| 69 config.useHtmlConfiguration(); | 69 config.useHtmlConfiguration(); |
| 70 unittest.group('', Test.main); | 70 unittest.group('', Test.main); |
| 71 } | 71 } |
| 72 """; | 72 """; |
| 73 } | 73 } |
| OLD | NEW |