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 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2330 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 2330 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
2331 } | 2331 } |
2332 | 2332 |
2333 @reflectiveTest | 2333 @reflectiveTest |
2334 class DartEntryTest extends EngineTestCase { | 2334 class DartEntryTest extends EngineTestCase { |
2335 void test_allErrors() { | 2335 void test_allErrors() { |
2336 Source source = new TestSource(); | 2336 Source source = new TestSource(); |
2337 DartEntry entry = new DartEntry(); | 2337 DartEntry entry = new DartEntry(); |
2338 expect(entry.allErrors, hasLength(0)); | 2338 expect(entry.allErrors, hasLength(0)); |
2339 entry.setValue(SourceEntry.CONTENT_ERRORS, <AnalysisError>[ | 2339 entry.setValue(SourceEntry.CONTENT_ERRORS, <AnalysisError>[ |
2340 new AnalysisError.con1(source, ScannerErrorCode.UNABLE_GET_CONTENT) | 2340 new AnalysisError.con1( |
| 2341 source, ScannerErrorCode.UNABLE_GET_CONTENT, ['exception details']) |
2341 ]); | 2342 ]); |
2342 entry.setValue(DartEntry.SCAN_ERRORS, <AnalysisError>[ | 2343 entry.setValue(DartEntry.SCAN_ERRORS, <AnalysisError>[ |
2343 new AnalysisError.con1( | 2344 new AnalysisError.con1( |
2344 source, ScannerErrorCode.UNTERMINATED_STRING_LITERAL) | 2345 source, ScannerErrorCode.UNTERMINATED_STRING_LITERAL) |
2345 ]); | 2346 ]); |
2346 entry.setValue(DartEntry.PARSE_ERRORS, <AnalysisError>[ | 2347 entry.setValue(DartEntry.PARSE_ERRORS, <AnalysisError>[ |
2347 new AnalysisError.con1(source, ParserErrorCode.ABSTRACT_CLASS_MEMBER) | 2348 new AnalysisError.con1(source, ParserErrorCode.ABSTRACT_CLASS_MEMBER) |
2348 ]); | 2349 ]); |
2349 entry.setValueInLibrary(DartEntry.RESOLUTION_ERRORS, source, | 2350 entry.setValueInLibrary(DartEntry.RESOLUTION_ERRORS, source, |
2350 <AnalysisError>[ | 2351 <AnalysisError>[ |
(...skipping 4254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6605 @override | 6606 @override |
6606 bool exists() => true; | 6607 bool exists() => true; |
6607 } | 6608 } |
6608 | 6609 |
6609 class _UniversalCachePartitionTest_test_setMaxCacheSize | 6610 class _UniversalCachePartitionTest_test_setMaxCacheSize |
6610 implements CacheRetentionPolicy { | 6611 implements CacheRetentionPolicy { |
6611 @override | 6612 @override |
6612 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 6613 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
6613 RetentionPriority.LOW; | 6614 RetentionPriority.LOW; |
6614 } | 6615 } |
OLD | NEW |