OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'compiler_configuration.dart'; | 9 import 'compiler_configuration.dart'; |
10 import 'http_server.dart'; | 10 import 'http_server.dart'; |
(...skipping 29 matching lines...) Expand all Loading... |
40 this.isVerbose, | 40 this.isVerbose, |
41 this.listTests, | 41 this.listTests, |
42 this.printTiming, | 42 this.printTiming, |
43 this.printReport, | 43 this.printReport, |
44 this.reportInJson, | 44 this.reportInJson, |
45 this.resetBrowser, | 45 this.resetBrowser, |
46 this.skipCompilation, | 46 this.skipCompilation, |
47 this.useBlobs, | 47 this.useBlobs, |
48 this.useSdk, | 48 this.useSdk, |
49 this.useFastStartup, | 49 this.useFastStartup, |
| 50 this.useEnableAsserts, |
50 this.useDart2JSWithKernel, | 51 this.useDart2JSWithKernel, |
51 this.writeDebugLog, | 52 this.writeDebugLog, |
52 this.writeTestOutcomeLog, | 53 this.writeTestOutcomeLog, |
53 this.drtPath, | 54 this.drtPath, |
54 this.dartiumPath, | 55 this.dartiumPath, |
55 this.chromePath, | 56 this.chromePath, |
56 this.safariPath, | 57 this.safariPath, |
57 this.firefoxPath, | 58 this.firefoxPath, |
58 this.dartPath, | 59 this.dartPath, |
59 this.dartPrecompiledPath, | 60 this.dartPrecompiledPath, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 final bool isVerbose; | 103 final bool isVerbose; |
103 final bool listTests; | 104 final bool listTests; |
104 final bool printTiming; | 105 final bool printTiming; |
105 final bool printReport; | 106 final bool printReport; |
106 final bool reportInJson; | 107 final bool reportInJson; |
107 final bool resetBrowser; | 108 final bool resetBrowser; |
108 final bool skipCompilation; | 109 final bool skipCompilation; |
109 final bool useBlobs; | 110 final bool useBlobs; |
110 final bool useSdk; | 111 final bool useSdk; |
111 final bool useFastStartup; | 112 final bool useFastStartup; |
| 113 final bool useEnableAsserts; |
112 final bool useDart2JSWithKernel; | 114 final bool useDart2JSWithKernel; |
113 final bool writeDebugLog; | 115 final bool writeDebugLog; |
114 final bool writeTestOutcomeLog; | 116 final bool writeTestOutcomeLog; |
115 | 117 |
116 // Various file paths. | 118 // Various file paths. |
117 | 119 |
118 final String drtPath; | 120 final String drtPath; |
119 final String dartiumPath; | 121 final String dartiumPath; |
120 final String chromePath; | 122 final String chromePath; |
121 final String safariPath; | 123 final String safariPath; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 if (isChecked) args.add('--enable-checked-mode'); | 210 if (isChecked) args.add('--enable-checked-mode'); |
209 | 211 |
210 if (!runtime.isBrowser) { | 212 if (!runtime.isBrowser) { |
211 args.add("--allow-mock-compilation"); | 213 args.add("--allow-mock-compilation"); |
212 args.add("--categories=all"); | 214 args.add("--categories=all"); |
213 } | 215 } |
214 | 216 |
215 if (isMinified) args.add("--minify"); | 217 if (isMinified) args.add("--minify"); |
216 if (isCsp) args.add("--csp"); | 218 if (isCsp) args.add("--csp"); |
217 if (useFastStartup) args.add("--fast-startup"); | 219 if (useFastStartup) args.add("--fast-startup"); |
| 220 if (useEnableAsserts) args.add("--enable-asserts"); |
218 if (useDart2JSWithKernel) args.add("--use-kernel"); | 221 if (useDart2JSWithKernel) args.add("--use-kernel"); |
219 return args; | 222 return args; |
220 } | 223 } |
221 | 224 |
222 String _windowsSdkPath; | 225 String _windowsSdkPath; |
223 String get windowsSdkPath { | 226 String get windowsSdkPath { |
224 if (!Platform.isWindows) { | 227 if (!Platform.isWindows) { |
225 throw new StateError( | 228 throw new StateError( |
226 "Should not use windowsSdkPath when not running on Windows."); | 229 "Should not use windowsSdkPath when not running on Windows."); |
227 } | 230 } |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 | 755 |
753 case macos: | 756 case macos: |
754 return 'xcodebuild/'; | 757 return 'xcodebuild/'; |
755 } | 758 } |
756 | 759 |
757 throw "unreachable"; | 760 throw "unreachable"; |
758 } | 761 } |
759 | 762 |
760 String toString() => "System($name)"; | 763 String toString() => "System($name)"; |
761 } | 764 } |
OLD | NEW |