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 | 4 |
5 library utils; | 5 library utils; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
9 import 'dart:convert'; | 9 import 'dart:convert'; |
10 | 10 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 'linux': 'google-chrome' | 201 'linux': 'google-chrome' |
202 }, | 202 }, |
203 'dartium': const { | 203 'dartium': const { |
204 'windows': 'client\\tests\\dartium\\chrome.exe', | 204 'windows': 'client\\tests\\dartium\\chrome.exe', |
205 'macos': 'client/tests/dartium/Chromium.app/Contents/MacOS/Chromium', | 205 'macos': 'client/tests/dartium/Chromium.app/Contents/MacOS/Chromium', |
206 'linux': 'client/tests/dartium/chrome' | 206 'linux': 'client/tests/dartium/chrome' |
207 }, | 207 }, |
208 'safari': const { | 208 'safari': const { |
209 'macos': '/Applications/Safari.app/Contents/MacOS/Safari' | 209 'macos': '/Applications/Safari.app/Contents/MacOS/Safari' |
210 }, | 210 }, |
| 211 'safarimobilesim': const { |
| 212 'macos': '/Applications/Xcode.app/Contents/Developer/Platforms/' |
| 213 'iPhoneSimulator.platform/Developer/Applications/' |
| 214 'iPhone Simulator.app/Contents/MacOS/iPhone Simulator' |
| 215 }, |
211 'ie9': const { | 216 'ie9': const { |
212 'windows': 'C:\\Program Files\\Internet Explorer\\iexplore.exe' | 217 'windows': 'C:\\Program Files\\Internet Explorer\\iexplore.exe' |
213 }, | 218 }, |
214 'ie10': const { | 219 'ie10': const { |
215 'windows': 'C:\\Program Files\\Internet Explorer\\iexplore.exe' | 220 'windows': 'C:\\Program Files\\Internet Explorer\\iexplore.exe' |
216 }, | 221 }, |
217 'ie11': const { | 222 'ie11': const { |
218 'windows': 'C:\\Program Files\\Internet Explorer\\iexplore.exe' | 223 'windows': 'C:\\Program Files\\Internet Explorer\\iexplore.exe' |
219 }}; | 224 }}; |
220 browserLocations['ff'] = browserLocations['firefox']; | 225 browserLocations['ff'] = browserLocations['firefox']; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 298 |
294 class UniqueObject { | 299 class UniqueObject { |
295 static int _nextId = 1; | 300 static int _nextId = 1; |
296 final int _hashCode; | 301 final int _hashCode; |
297 | 302 |
298 int get hashCode => _hashCode; | 303 int get hashCode => _hashCode; |
299 operator==(other) => other is UniqueObject && _hashCode == other._hashCode; | 304 operator==(other) => other is UniqueObject && _hashCode == other._hashCode; |
300 | 305 |
301 UniqueObject() : _hashCode = ++_nextId; | 306 UniqueObject() : _hashCode = ++_nextId; |
302 } | 307 } |
OLD | NEW |