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

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

Issue 841193003: cleanup to tools/testing/dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: one last bit Created 5 years, 11 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 | « tools/testing/dart/browser_controller.dart ('k') | tools/testing/dart/co19_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library browser_test;
6
7 import 'path.dart';
8
9 String getHtmlContents(String title,
10 String scriptType,
11 Path sourceScript) {
12 return """
13 <!DOCTYPE html>
14 <html>
15 <head>
16 <meta http-equiv="X-UA-Compatible" content="IE=edge">
17 <meta name="dart.unittest" content="full-stack-traces">
18 <title> Test $title </title>
19 <style>
20 .unittest-table { font-family:monospace; border:1px; }
21 .unittest-pass { background: #6b3;}
22 .unittest-fail { background: #d55;}
23 .unittest-error { background: #a11;}
24 </style>
25 </head>
26 <body>
27 <h1> Running $title </h1>
28 <script type="text/javascript"
29 src="/root_dart/tools/testing/dart/test_controller.js">
30 </script>
31 <script type="$scriptType" src="$sourceScript"
32 onerror="scriptTagOnErrorCallback(null)"
33 defer>
34 </script>
35 <script type="text/javascript"
36 src="/root_dart/pkg/browser/lib/dart.js"></script>
37 </body>
38 </html>""";
39 }
40
41 String dartTestWrapper(String libraryPathComponent) {
42 return """
43 import '$libraryPathComponent' as test;
44
45 main() {
46 print("dart-calling-main");
47 test.main();
48 print("dart-main-done");
49 }
50 """;
51 }
OLDNEW
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | tools/testing/dart/co19_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698