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

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

Issue 15963012: Change firefox initialization name (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library browser; 4 library browser;
5 5
6 import "dart:async"; 6 import "dart:async";
7 import "dart:core"; 7 import "dart:core";
8 import "dart:io"; 8 import "dart:io";
9 9
10 import 'android.dart'; 10 import 'android.dart';
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 /** Print everything (stdout, stderr, usageLog) whenever we add to it */ 50 /** Print everything (stdout, stderr, usageLog) whenever we add to it */
51 bool debugPrint = false; 51 bool debugPrint = false;
52 52
53 // We use this to gracefully handle double calls to close. 53 // We use this to gracefully handle double calls to close.
54 bool underTermination = false; 54 bool underTermination = false;
55 55
56 Browser(); 56 Browser();
57 57
58 factory Browser.byName(String name) { 58 factory Browser.byName(String name) {
59 if (name == 'ff' || name == 'firefox') { 59 if (name == 'ff' || name == 'firefox') {
60 return new FireFox(); 60 return new Firefox();
61 } else if (name == 'chrome') { 61 } else if (name == 'chrome') {
62 return new Chrome(); 62 return new Chrome();
63 } else if (name == 'safari') { 63 } else if (name == 'safari') {
64 return new Safari(); 64 return new Safari();
65 } else { 65 } else {
66 throw "Non supported browser"; 66 throw "Non supported browser";
67 } 67 }
68 } 68 }
69 69
70 static const List<String> SUPPORTED_BROWSERS = 70 static const List<String> SUPPORTED_BROWSERS =
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 </script> 941 </script>
942 </head> 942 </head>
943 <body> 943 <body>
944 Dart test driver, number of tests: <div id="number"></div> 944 Dart test driver, number of tests: <div id="number"></div>
945 </body> 945 </body>
946 </html> 946 </html>
947 """; 947 """;
948 return driverContent; 948 return driverContent;
949 } 949 }
950 } 950 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698