Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: tools/testing/dart/browser_test.dart

Issue 14172011: Fix more type errors in test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698