| 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 """ |
| 11 <!DOCTYPE html> | 11 <!DOCTYPE html> |
| 12 <html> | 12 <html> |
| 13 <head> | 13 <head> |
| 14 <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 14 <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 15 <title> Test $title </title> | 15 <title> Test $title </title> |
| 16 <style> | 16 <style> |
| 17 .unittest-table { font-family:monospace; border:1px; } | 17 .unittest-table { font-family:monospace; border:1px; } |
| 18 .unittest-pass { background: #6b3;} | 18 .unittest-pass { background: #6b3;} |
| 19 .unittest-fail { background: #d55;} | 19 .unittest-fail { background: #d55;} |
| 20 .unittest-error { background: #a11;} | 20 .unittest-error { background: #a11;} |
| 21 </style> | 21 </style> |
| 22 </head> | 22 </head> |
| 23 <body> | 23 <body> |
| 24 <h1> Running $title </h1> | 24 <h1> Running $title </h1> |
| 25 <script type="text/javascript" src="/pkg/unittest/test_controller.js"></script
> | 25 <script type="text/javascript" src="/pkg/unittest/lib/test_controller.js"> |
| 26 </script> |
| 26 <script type="$scriptType" src="$sourceScript" onerror="externalError(null)"> | 27 <script type="$scriptType" src="$sourceScript" onerror="externalError(null)"> |
| 27 </script> | 28 </script> |
| 28 <script type="text/javascript" src="/pkg/browser/lib/dart.js"></script> | 29 <script type="text/javascript" src="/pkg/browser/lib/dart.js"></script> |
| 29 </body> | 30 </body> |
| 30 </html> | 31 </html> |
| 31 """; | 32 """; |
| 32 | 33 |
| 33 String getHtmlLayoutContents(String scriptType, String sourceScript) => | 34 String getHtmlLayoutContents(String scriptType, String sourceScript) => |
| 34 """ | 35 """ |
| 35 <!DOCTYPE html> | 36 <!DOCTYPE html> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 import '$unitTest/unittest.dart' as unittest; | 68 import '$unitTest/unittest.dart' as unittest; |
| 68 import '$unitTest/html_config.dart' as config; | 69 import '$unitTest/html_config.dart' as config; |
| 69 import '$libraryPathComponent' as Test; | 70 import '$libraryPathComponent' as Test; |
| 70 | 71 |
| 71 main() { | 72 main() { |
| 72 config.useHtmlConfiguration(); | 73 config.useHtmlConfiguration(); |
| 73 unittest.group('', Test.main); | 74 unittest.group('', Test.main); |
| 74 } | 75 } |
| 75 """; | 76 """; |
| 76 } | 77 } |
| OLD | NEW |