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