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

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

Issue 11360028: Only start http server for browser tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
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 String controllerScript, 6 Path controllerScript,
7 String dartJsScript, 7 Path dartJsScript,
8 String scriptType, 8 String scriptType,
9 String 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;}
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 prefix: 'config'); 60 prefix: 'config');
61 61
62 #import('${library}', prefix: "Test"); 62 #import('${library}', prefix: "Test");
63 63
64 main() { 64 main() {
65 config.useHtmlConfiguration(); 65 config.useHtmlConfiguration();
66 unittest.group('', Test.main); 66 unittest.group('', Test.main);
67 } 67 }
68 """; 68 """;
69 69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698