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

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

Issue 11565018: Avoid timeouts when DRT fails to find a file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « samples/tests/samples/samples.status ('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 String getHtmlContents(String title, 5 String getHtmlContents(String title,
6 Path controllerScript, 6 Path controllerScript,
7 Path dartJsScript, 7 Path dartJsScript,
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 <title> Test $title </title> 15 <title> Test $title </title>
16 <style> 16 <style>
17 .unittest-table { font-family:monospace; border:1px; } 17 .unittest-table { font-family:monospace; border:1px; }
18 .unittest-pass { background: #6b3;} 18 .unittest-pass { background: #6b3;}
19 .unittest-fail { background: #d55;} 19 .unittest-fail { background: #d55;}
20 .unittest-error { background: #a11;} 20 .unittest-error { background: #a11;}
21 </style> 21 </style>
22 </head> 22 </head>
23 <body> 23 <body>
24 <h1> Running $title </h1> 24 <h1> Running $title </h1>
25 <script type="text/javascript" src="$controllerScript"></script> 25 <script type="text/javascript" src="$controllerScript"></script>
26 <script type="$scriptType" src="$sourceScript"></script> 26 <script type="$scriptType" src="$sourceScript" onerror="externalError(null)">
27 </script>
27 <script type="text/javascript" src="$dartJsScript"></script> 28 <script type="text/javascript" src="$dartJsScript"></script>
28 </body> 29 </body>
29 </html> 30 </html>
30 """; 31 """;
31 32
32 String getHtmlLayoutContents(String scriptType, String sourceScript) => 33 String getHtmlLayoutContents(String scriptType, String sourceScript) =>
33 """ 34 """
34 <!DOCTYPE html> 35 <!DOCTYPE html>
35 <html> 36 <html>
36 <head> 37 <head>
(...skipping 21 matching lines...) Expand all
58 import '${dartHome.append('pkg/unittest/lib/unittest.dart')}' as unittest; 59 import '${dartHome.append('pkg/unittest/lib/unittest.dart')}' as unittest;
59 import '${dartHome.append('pkg/unittest/lib/html_config.dart')}' as config; 60 import '${dartHome.append('pkg/unittest/lib/html_config.dart')}' as config;
60 import '${library}' as Test; 61 import '${library}' as Test;
61 62
62 main() { 63 main() {
63 config.useHtmlConfiguration(); 64 config.useHtmlConfiguration();
64 unittest.group('', Test.main); 65 unittest.group('', Test.main);
65 } 66 }
66 """; 67 """;
67 68
OLDNEW
« no previous file with comments | « samples/tests/samples/samples.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698