| 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 String controllerScript, | 6 String controllerScript, |
| 7 String scriptType, | 7 String scriptType, |
| 8 String sourceScript) => | 8 String sourceScript) => |
| 9 """ | 9 """ |
| 10 <!DOCTYPE html> | 10 <!DOCTYPE html> |
| 11 <html> | 11 <html> |
| 12 <head> | 12 <head> |
| 13 <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 13 <title> Test $title </title> | 14 <title> Test $title </title> |
| 14 <style> | 15 <style> |
| 15 .unittest-table { font-family:monospace; border:1px; } | 16 .unittest-table { font-family:monospace; border:1px; } |
| 16 .unittest-pass { background: #6b3;} | 17 .unittest-pass { background: #6b3;} |
| 17 .unittest-fail { background: #d55;} | 18 .unittest-fail { background: #d55;} |
| 18 .unittest-error { background: #a11;} | 19 .unittest-error { background: #a11;} |
| 19 </style> | 20 </style> |
| 20 </head> | 21 </head> |
| 21 <body> | 22 <body> |
| 22 <h1> Running $title </h1> | 23 <h1> Running $title </h1> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 try { | 89 try { |
| 89 unittest.ensureInitialized(); | 90 unittest.ensureInitialized(); |
| 90 Test.main(); | 91 Test.main(); |
| 91 } catch(var e, var trace) { | 92 } catch(var e, var trace) { |
| 92 unittest.reportTestError( | 93 unittest.reportTestError( |
| 93 e.toString(), trace == null ? '' : trace.toString()); | 94 e.toString(), trace == null ? '' : trace.toString()); |
| 94 } | 95 } |
| 95 } | 96 } |
| 96 """; | 97 """; |
| 97 } | 98 } |
| OLD | NEW |