| 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 library browser_test; | 5 library browser_test; |
| 6 | 6 |
| 7 import 'path.dart'; | 7 import 'path.dart'; |
| 8 | 8 |
| 9 String getHtmlContents(String title, | 9 String getHtmlContents(String title, String scriptType, Path sourceScript) { |
| 10 String scriptType, | |
| 11 Path sourceScript) { | |
| 12 return """ | 10 return """ |
| 13 <!DOCTYPE html> | 11 <!DOCTYPE html> |
| 14 <html> | 12 <html> |
| 15 <head> | 13 <head> |
| 16 <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 14 <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 17 <meta name="dart.unittest" content="full-stack-traces"> | 15 <meta name="dart.unittest" content="full-stack-traces"> |
| 18 <title> Test $title </title> | 16 <title> Test $title </title> |
| 19 <style> | 17 <style> |
| 20 .unittest-table { font-family:monospace; border:1px; } | 18 .unittest-table { font-family:monospace; border:1px; } |
| 21 .unittest-pass { background: #6b3;} | 19 .unittest-pass { background: #6b3;} |
| (...skipping 20 matching lines...) Expand all Loading... |
| 42 return """ | 40 return """ |
| 43 import '$libraryPathComponent' as test; | 41 import '$libraryPathComponent' as test; |
| 44 | 42 |
| 45 main() { | 43 main() { |
| 46 print("dart-calling-main"); | 44 print("dart-calling-main"); |
| 47 test.main(); | 45 test.main(); |
| 48 print("dart-main-done"); | 46 print("dart-main-done"); |
| 49 } | 47 } |
| 50 """; | 48 """; |
| 51 } | 49 } |
| OLD | NEW |