| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |