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

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

Issue 377493002: Don't use new windows for ie11 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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: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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 throw "Non supported browser"; 84 throw "Non supported browser";
85 } 85 }
86 browser._binary = executablePath; 86 browser._binary = executablePath;
87 return browser; 87 return browser;
88 } 88 }
89 89
90 static const List<String> SUPPORTED_BROWSERS = 90 static const List<String> SUPPORTED_BROWSERS =
91 const ['safari', 'ff', 'firefox', 'chrome', 'ie9', 'ie10', 91 const ['safari', 'ff', 'firefox', 'chrome', 'ie9', 'ie10',
92 'ie11', 'dartium']; 92 'ie11', 'dartium'];
93 93
94 static const List<String> BROWSERS_WITH_WINDOW_SUPPORT = const ['ie11']; 94 static const List<String> BROWSERS_WITH_WINDOW_SUPPORT = const [];
95 95
96 // TODO(kustermann): add standard support for chrome on android 96 // TODO(kustermann): add standard support for chrome on android
97 static bool supportedBrowser(String name) { 97 static bool supportedBrowser(String name) {
98 return SUPPORTED_BROWSERS.contains(name); 98 return SUPPORTED_BROWSERS.contains(name);
99 } 99 }
100 100
101 void _logEvent(String event) { 101 void _logEvent(String event) {
102 String toLog = "$this ($id) - $event \n"; 102 String toLog = "$this ($id) - $event \n";
103 if (debugPrint) print("usageLog: $toLog"); 103 if (debugPrint) print("usageLog: $toLog");
104 if (logger != null) logger(toLog); 104 if (logger != null) logger(toLog);
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 Dart test driver, number of tests: <div id="number"></div><br> 1557 Dart test driver, number of tests: <div id="number"></div><br>
1558 Currently executing: <div id="currently_executing"></div><br> 1558 Currently executing: <div id="currently_executing"></div><br>
1559 Unhandled error: <div id="unhandled_error"></div> 1559 Unhandled error: <div id="unhandled_error"></div>
1560 <iframe id="embedded_iframe"></iframe> 1560 <iframe id="embedded_iframe"></iframe>
1561 </body> 1561 </body>
1562 </html> 1562 </html>
1563 """; 1563 """;
1564 return driverContent; 1564 return driverContent;
1565 } 1565 }
1566 } 1566 }
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