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

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

Issue 22859009: Changes to how we handle fancy stacks: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | « pkg/unittest/lib/vm_config.dart ('k') | no next file » | 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 """
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 <meta name="dart.unittest" content="full-stack-traces">
15 <title> Test $title </title> 16 <title> Test $title </title>
16 <style> 17 <style>
17 .unittest-table { font-family:monospace; border:1px; } 18 .unittest-table { font-family:monospace; border:1px; }
18 .unittest-pass { background: #6b3;} 19 .unittest-pass { background: #6b3;}
19 .unittest-fail { background: #d55;} 20 .unittest-fail { background: #d55;}
20 .unittest-error { background: #a11;} 21 .unittest-error { background: #a11;}
21 </style> 22 </style>
22 </head> 23 </head>
23 <body> 24 <body>
24 <h1> Running $title </h1> 25 <h1> Running $title </h1>
25 <script type="text/javascript" 26 <script type="text/javascript"
26 src="/root_dart/pkg/unittest/lib/test_controller.js"> 27 src="/root_dart/pkg/unittest/lib/test_controller.js">
27 </script> 28 </script>
28 <script type="$scriptType" src="$sourceScript" onerror="externalError(null)" 29 <script type="$scriptType" src="$sourceScript" onerror="externalError(null)"
29 defer> 30 defer>
30 </script> 31 </script>
31 <script type="text/javascript" 32 <script type="text/javascript"
32 src="/root_dart/pkg/browser/lib/dart.js"></script> 33 src="/root_dart/pkg/browser/lib/dart.js"></script>
33 <script type="text/javascript" 34 <script type="text/javascript"
34 src="/root_dart/pkg/browser/lib/interop.js"></script> 35 src="/root_dart/pkg/browser/lib/interop.js"></script>
35 </body> 36 </body>
36 </html> 37 </html>
37 """; 38 """;
38 39
39 String getHtmlLayoutContents(String scriptType, Path sourceScript) => 40 String getHtmlLayoutContents(String scriptType,
41 Path sourceScript) =>
40 """ 42 """
41 <!DOCTYPE html> 43 <!DOCTYPE html>
42 <html> 44 <html>
43 <head> 45 <head>
44 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 46 <meta http-equiv="X-UA-Compatible" content="IE=edge">
45 </head> 47 <meta name="dart.unittest" content="full-stack-traces">
kustermann 2013/08/22 21:40:52 You removed accidentally </head>!
46 <body> 48 <body>
47 <script type="text/javascript"> 49 <script type="text/javascript">
48 if (navigator.webkitStartDart) navigator.webkitStartDart(); 50 if (navigator.webkitStartDart) navigator.webkitStartDart();
49 </script> 51 </script>
50 <script type="$scriptType" src="$sourceScript" defer></script> 52 <script type="$scriptType" src="$sourceScript" defer></script>
51 </body> 53 </body>
52 </html> 54 </html>
53 """; 55 """;
54 56
55 String dartTestWrapper(bool usePackageImport, String libraryPathComponent) { 57 String dartTestWrapper(bool usePackageImport, String libraryPathComponent) {
(...skipping 11 matching lines...) Expand all
67 import '$unitTest/unittest.dart' as unittest; 69 import '$unitTest/unittest.dart' as unittest;
68 import '$unitTest/html_config.dart' as config; 70 import '$unitTest/html_config.dart' as config;
69 import '$libraryPathComponent' as Test; 71 import '$libraryPathComponent' as Test;
70 72
71 main() { 73 main() {
72 config.useHtmlConfiguration(); 74 config.useHtmlConfiguration();
73 unittest.group('', Test.main); 75 unittest.group('', Test.main);
74 } 76 }
75 """; 77 """;
76 } 78 }
OLDNEW
« no previous file with comments | « pkg/unittest/lib/vm_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698