OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 test_configurations; | 5 library test_configurations; |
6 | 6 |
7 import "dart:async"; | 7 import "dart:async"; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import "dart:math" as math; | 9 import "dart:math" as math; |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 BuildbotProgressIndicator.stepName = firstConf['step_name']; | 62 BuildbotProgressIndicator.stepName = firstConf['step_name']; |
63 var verbose = firstConf['verbose']; | 63 var verbose = firstConf['verbose']; |
64 var printTiming = firstConf['time']; | 64 var printTiming = firstConf['time']; |
65 var listTests = firstConf['list']; | 65 var listTests = firstConf['list']; |
66 | 66 |
67 var reportInJson = firstConf['report_in_json']; | 67 var reportInJson = firstConf['report_in_json']; |
68 | 68 |
69 var recordingPath = firstConf['record_to_file']; | 69 var recordingPath = firstConf['record_to_file']; |
70 var recordingOutputPath = firstConf['replay_from_file']; | 70 var recordingOutputPath = firstConf['replay_from_file']; |
71 | 71 |
72 Browser.deleteCache = firstConf['clear_browser_cache']; | 72 Browser.resetBrowserConfiguration = firstConf['reset_browser_configuration']; |
73 | 73 |
74 if (recordingPath != null && recordingOutputPath != null) { | 74 if (recordingPath != null && recordingOutputPath != null) { |
75 print("Fatal: Can't have the '--record_to_file' and '--replay_from_file'" | 75 print("Fatal: Can't have the '--record_to_file' and '--replay_from_file'" |
76 "at the same time. Exiting ..."); | 76 "at the same time. Exiting ..."); |
77 exit(1); | 77 exit(1); |
78 } | 78 } |
79 | 79 |
80 if (!firstConf['append_logs']) { | 80 if (!firstConf['append_logs']) { |
81 var files = [ | 81 var files = [ |
82 new File(TestUtils.flakyFileName()), | 82 new File(TestUtils.flakyFileName()), |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 maxBrowserProcesses, | 305 maxBrowserProcesses, |
306 startTime, | 306 startTime, |
307 testSuites, | 307 testSuites, |
308 eventListener, | 308 eventListener, |
309 allTestsFinished, | 309 allTestsFinished, |
310 verbose, | 310 verbose, |
311 recordingPath, | 311 recordingPath, |
312 recordingOutputPath, | 312 recordingOutputPath, |
313 adbDevicePool); | 313 adbDevicePool); |
314 } | 314 } |
OLD | NEW |