| 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:convert" show LineSplitter, UTF8; | 7 import "dart:convert" show LineSplitter, UTF8; |
| 8 import "dart:core"; | 8 import "dart:core"; |
| 9 import "dart:io"; | 9 import "dart:io"; |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } else if (name.startsWith('ie')) { | 73 } else if (name.startsWith('ie')) { |
| 74 browser = new IE(); | 74 browser = new IE(); |
| 75 } else { | 75 } else { |
| 76 throw "Non supported browser"; | 76 throw "Non supported browser"; |
| 77 } | 77 } |
| 78 browser._binary = executablePath; | 78 browser._binary = executablePath; |
| 79 return browser; | 79 return browser; |
| 80 } | 80 } |
| 81 | 81 |
| 82 static const List<String> SUPPORTED_BROWSERS = | 82 static const List<String> SUPPORTED_BROWSERS = |
| 83 const ['safari', 'ff', 'firefox', 'chrome', 'ie9', 'ie10', 'dartium']; | 83 const ['safari', 'ff', 'firefox', 'chrome', 'ie9', 'ie10', |
| 84 'ie11', 'dartium']; |
| 84 | 85 |
| 85 static const List<String> BROWSERS_WITH_WINDOW_SUPPORT = const []; | 86 static const List<String> BROWSERS_WITH_WINDOW_SUPPORT = const []; |
| 86 | 87 |
| 87 // TODO(kustermann): add standard support for chrome on android | 88 // TODO(kustermann): add standard support for chrome on android |
| 88 static bool supportedBrowser(String name) { | 89 static bool supportedBrowser(String name) { |
| 89 return SUPPORTED_BROWSERS.contains(name); | 90 return SUPPORTED_BROWSERS.contains(name); |
| 90 } | 91 } |
| 91 | 92 |
| 92 void _logEvent(String event) { | 93 void _logEvent(String event) { |
| 93 String toLog = "$this ($id) - $event \n"; | 94 String toLog = "$this ($id) - $event \n"; |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 Dart test driver, number of tests: <div id="number"></div><br> | 1453 Dart test driver, number of tests: <div id="number"></div><br> |
| 1453 Currently executing: <div id="currently_executing"></div><br> | 1454 Currently executing: <div id="currently_executing"></div><br> |
| 1454 Unhandled error: <div id="unhandled_error"></div> | 1455 Unhandled error: <div id="unhandled_error"></div> |
| 1455 <iframe id="embedded_iframe"></iframe> | 1456 <iframe id="embedded_iframe"></iframe> |
| 1456 </body> | 1457 </body> |
| 1457 </html> | 1458 </html> |
| 1458 """; | 1459 """; |
| 1459 return driverContent; | 1460 return driverContent; |
| 1460 } | 1461 } |
| 1461 } | 1462 } |
| OLD | NEW |