| 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 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2191 | 2191 |
| 2192 @reflectiveTest | 2192 @reflectiveTest |
| 2193 class AnalysisOptionsImplTest extends EngineTestCase { | 2193 class AnalysisOptionsImplTest extends EngineTestCase { |
| 2194 void test_AnalysisOptionsImpl_copy() { | 2194 void test_AnalysisOptionsImpl_copy() { |
| 2195 bool booleanValue = true; | 2195 bool booleanValue = true; |
| 2196 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) { | 2196 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) { |
| 2197 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2197 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2198 options.analyzeFunctionBodies = booleanValue; | 2198 options.analyzeFunctionBodies = booleanValue; |
| 2199 options.cacheSize = i; | 2199 options.cacheSize = i; |
| 2200 options.dart2jsHint = booleanValue; | 2200 options.dart2jsHint = booleanValue; |
| 2201 options.generateImplicitErrors = booleanValue; |
| 2201 options.generateSdkErrors = booleanValue; | 2202 options.generateSdkErrors = booleanValue; |
| 2202 options.hint = booleanValue; | 2203 options.hint = booleanValue; |
| 2203 options.incremental = booleanValue; | 2204 options.incremental = booleanValue; |
| 2204 options.preserveComments = booleanValue; | 2205 options.preserveComments = booleanValue; |
| 2205 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.con1(options); | 2206 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.con1(options); |
| 2206 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); | 2207 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); |
| 2207 expect(copy.cacheSize, options.cacheSize); | 2208 expect(copy.cacheSize, options.cacheSize); |
| 2208 expect(copy.dart2jsHint, options.dart2jsHint); | 2209 expect(copy.dart2jsHint, options.dart2jsHint); |
| 2210 expect(copy.generateImplicitErrors, options.generateImplicitErrors); |
| 2209 expect(copy.generateSdkErrors, options.generateSdkErrors); | 2211 expect(copy.generateSdkErrors, options.generateSdkErrors); |
| 2210 expect(copy.hint, options.hint); | 2212 expect(copy.hint, options.hint); |
| 2211 expect(copy.incremental, options.incremental); | 2213 expect(copy.incremental, options.incremental); |
| 2212 expect(copy.preserveComments, options.preserveComments); | 2214 expect(copy.preserveComments, options.preserveComments); |
| 2213 } | 2215 } |
| 2214 } | 2216 } |
| 2215 | 2217 |
| 2216 void test_getAnalyzeFunctionBodies() { | 2218 void test_analyzeFunctionBodies() { |
| 2217 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2219 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2218 bool value = !options.analyzeFunctionBodies; | 2220 bool value = !options.analyzeFunctionBodies; |
| 2219 options.analyzeFunctionBodies = value; | 2221 options.analyzeFunctionBodies = value; |
| 2220 expect(options.analyzeFunctionBodies, value); | 2222 expect(options.analyzeFunctionBodies, value); |
| 2221 } | 2223 } |
| 2222 | 2224 |
| 2223 void test_getCacheSize() { | 2225 void test_cacheSize() { |
| 2224 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2226 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2225 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE); | 2227 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE); |
| 2226 int value = options.cacheSize + 1; | 2228 int value = options.cacheSize + 1; |
| 2227 options.cacheSize = value; | 2229 options.cacheSize = value; |
| 2228 expect(options.cacheSize, value); | 2230 expect(options.cacheSize, value); |
| 2229 } | 2231 } |
| 2230 | 2232 |
| 2231 void test_getDart2jsHint() { | 2233 void test_dart2jsHint() { |
| 2232 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2234 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2233 bool value = !options.dart2jsHint; | 2235 bool value = !options.dart2jsHint; |
| 2234 options.dart2jsHint = value; | 2236 options.dart2jsHint = value; |
| 2235 expect(options.dart2jsHint, value); | 2237 expect(options.dart2jsHint, value); |
| 2236 } | 2238 } |
| 2237 | 2239 |
| 2238 void test_getGenerateSdkErrors() { | 2240 void test_generateImplicitErrors() { |
| 2241 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2242 bool value = !options.generateImplicitErrors; |
| 2243 options.generateImplicitErrors = value; |
| 2244 expect(options.generateImplicitErrors, value); |
| 2245 } |
| 2246 |
| 2247 void test_generateSdkErrors() { |
| 2239 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2248 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2240 bool value = !options.generateSdkErrors; | 2249 bool value = !options.generateSdkErrors; |
| 2241 options.generateSdkErrors = value; | 2250 options.generateSdkErrors = value; |
| 2242 expect(options.generateSdkErrors, value); | 2251 expect(options.generateSdkErrors, value); |
| 2243 } | 2252 } |
| 2244 | 2253 |
| 2245 void test_getHint() { | 2254 void test_hint() { |
| 2246 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2255 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2247 bool value = !options.hint; | 2256 bool value = !options.hint; |
| 2248 options.hint = value; | 2257 options.hint = value; |
| 2249 expect(options.hint, value); | 2258 expect(options.hint, value); |
| 2250 } | 2259 } |
| 2251 | 2260 |
| 2252 void test_getIncremental() { | 2261 void test_incremental() { |
| 2253 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2262 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2254 bool value = !options.incremental; | 2263 bool value = !options.incremental; |
| 2255 options.incremental = value; | 2264 options.incremental = value; |
| 2256 expect(options.incremental, value); | 2265 expect(options.incremental, value); |
| 2257 } | 2266 } |
| 2258 | 2267 |
| 2259 void test_getPreserveComments() { | 2268 void test_preserveComments() { |
| 2260 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2269 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2261 bool value = !options.preserveComments; | 2270 bool value = !options.preserveComments; |
| 2262 options.preserveComments = value; | 2271 options.preserveComments = value; |
| 2263 expect(options.preserveComments, value); | 2272 expect(options.preserveComments, value); |
| 2264 } | 2273 } |
| 2265 } | 2274 } |
| 2266 | 2275 |
| 2267 class AnalysisTask_test_perform_exception extends AnalysisTask { | 2276 class AnalysisTask_test_perform_exception extends AnalysisTask { |
| 2268 AnalysisTask_test_perform_exception(InternalAnalysisContext arg0) | 2277 AnalysisTask_test_perform_exception(InternalAnalysisContext arg0) |
| 2269 : super(arg0); | 2278 : super(arg0); |
| (...skipping 4259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6529 @override | 6538 @override |
| 6530 bool exists() => true; | 6539 bool exists() => true; |
| 6531 } | 6540 } |
| 6532 | 6541 |
| 6533 class _UniversalCachePartitionTest_test_setMaxCacheSize | 6542 class _UniversalCachePartitionTest_test_setMaxCacheSize |
| 6534 implements CacheRetentionPolicy { | 6543 implements CacheRetentionPolicy { |
| 6535 @override | 6544 @override |
| 6536 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 6545 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
| 6537 RetentionPriority.LOW; | 6546 RetentionPriority.LOW; |
| 6538 } | 6547 } |
| OLD | NEW |