OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine.engine_test; | 8 library engine.engine_test; |
9 | 9 |
10 import 'dart:async'; | 10 import 'dart:async'; |
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2261 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2261 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
2262 options.analyzeFunctionBodies = booleanValue; | 2262 options.analyzeFunctionBodies = booleanValue; |
2263 options.cacheSize = i; | 2263 options.cacheSize = i; |
2264 options.dart2jsHint = booleanValue; | 2264 options.dart2jsHint = booleanValue; |
2265 options.enableStrictCallChecks = booleanValue; | 2265 options.enableStrictCallChecks = booleanValue; |
2266 options.generateImplicitErrors = booleanValue; | 2266 options.generateImplicitErrors = booleanValue; |
2267 options.generateSdkErrors = booleanValue; | 2267 options.generateSdkErrors = booleanValue; |
2268 options.hint = booleanValue; | 2268 options.hint = booleanValue; |
2269 options.incremental = booleanValue; | 2269 options.incremental = booleanValue; |
2270 options.preserveComments = booleanValue; | 2270 options.preserveComments = booleanValue; |
| 2271 options.strongMode = booleanValue; |
2271 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.from(options); | 2272 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.from(options); |
2272 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); | 2273 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); |
2273 expect(copy.cacheSize, options.cacheSize); | 2274 expect(copy.cacheSize, options.cacheSize); |
2274 expect(copy.dart2jsHint, options.dart2jsHint); | 2275 expect(copy.dart2jsHint, options.dart2jsHint); |
2275 expect(copy.enableStrictCallChecks, options.enableStrictCallChecks); | 2276 expect(copy.enableStrictCallChecks, options.enableStrictCallChecks); |
2276 expect(copy.generateImplicitErrors, options.generateImplicitErrors); | 2277 expect(copy.generateImplicitErrors, options.generateImplicitErrors); |
2277 expect(copy.generateSdkErrors, options.generateSdkErrors); | 2278 expect(copy.generateSdkErrors, options.generateSdkErrors); |
2278 expect(copy.hint, options.hint); | 2279 expect(copy.hint, options.hint); |
2279 expect(copy.incremental, options.incremental); | 2280 expect(copy.incremental, options.incremental); |
2280 expect(copy.preserveComments, options.preserveComments); | 2281 expect(copy.preserveComments, options.preserveComments); |
| 2282 expect(copy.strongMode, options.strongMode); |
2281 } | 2283 } |
2282 } | 2284 } |
2283 | 2285 |
2284 void test_analyzeFunctionBodies() { | 2286 void test_analyzeFunctionBodies() { |
2285 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2287 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
2286 bool value = !options.analyzeFunctionBodies; | 2288 bool value = !options.analyzeFunctionBodies; |
2287 options.analyzeFunctionBodies = value; | 2289 options.analyzeFunctionBodies = value; |
2288 expect(options.analyzeFunctionBodies, value); | 2290 expect(options.analyzeFunctionBodies, value); |
2289 } | 2291 } |
2290 | 2292 |
2291 void test_cacheSize() { | 2293 void test_cacheSize() { |
2292 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2294 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
2293 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE); | 2295 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE); |
2294 int value = options.cacheSize + 1; | 2296 int value = options.cacheSize + 1; |
2295 options.cacheSize = value; | 2297 options.cacheSize = value; |
2296 expect(options.cacheSize, value); | 2298 expect(options.cacheSize, value); |
2297 } | 2299 } |
2298 | 2300 |
2299 void test_dart2jsHint() { | 2301 void test_dart2jsHint() { |
2300 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2302 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
2301 bool value = !options.dart2jsHint; | 2303 bool value = !options.dart2jsHint; |
2302 options.dart2jsHint = value; | 2304 options.dart2jsHint = value; |
2303 expect(options.dart2jsHint, value); | 2305 expect(options.dart2jsHint, value); |
2304 } | 2306 } |
2305 | 2307 |
| 2308 void test_strongMode() { |
| 2309 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2310 bool value = !options.strongMode; |
| 2311 options.strongMode = value; |
| 2312 expect(options.strongMode, value); |
| 2313 } |
| 2314 |
2306 void test_generateImplicitErrors() { | 2315 void test_generateImplicitErrors() { |
2307 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2316 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
2308 bool value = !options.generateImplicitErrors; | 2317 bool value = !options.generateImplicitErrors; |
2309 options.generateImplicitErrors = value; | 2318 options.generateImplicitErrors = value; |
2310 expect(options.generateImplicitErrors, value); | 2319 expect(options.generateImplicitErrors, value); |
2311 } | 2320 } |
2312 | 2321 |
2313 void test_generateSdkErrors() { | 2322 void test_generateSdkErrors() { |
2314 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2323 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
2315 bool value = !options.generateSdkErrors; | 2324 bool value = !options.generateSdkErrors; |
(...skipping 4416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6732 @override | 6741 @override |
6733 bool exists() => true; | 6742 bool exists() => true; |
6734 } | 6743 } |
6735 | 6744 |
6736 class _UniversalCachePartitionTest_test_setMaxCacheSize | 6745 class _UniversalCachePartitionTest_test_setMaxCacheSize |
6737 implements CacheRetentionPolicy { | 6746 implements CacheRetentionPolicy { |
6738 @override | 6747 @override |
6739 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 6748 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
6740 RetentionPriority.LOW; | 6749 RetentionPriority.LOW; |
6741 } | 6750 } |
OLD | NEW |