| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 maxBrowserProcesses, | 306 maxBrowserProcesses, |
| 307 startTime, | 307 startTime, |
| 308 testSuites, | 308 testSuites, |
| 309 eventListener, | 309 eventListener, |
| 310 allTestsFinished, | 310 allTestsFinished, |
| 311 verbose, | 311 verbose, |
| 312 recordingPath, | 312 recordingPath, |
| 313 recordingOutputPath, | 313 recordingOutputPath, |
| 314 adbDevicePool); | 314 adbDevicePool); |
| 315 } | 315 } |
| OLD | NEW |