| 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 library analyzer.test.generated.compile_time_error_code_test; | 5 library analyzer.test.generated.compile_time_error_code_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analyzer/error/error.dart'; | 9 import 'package:analyzer/error/error.dart'; |
| 10 import 'package:analyzer/src/error/codes.dart'; | 10 import 'package:analyzer/src/error/codes.dart'; |
| (...skipping 6139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6150 assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]); | 6150 assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]); |
| 6151 } | 6151 } |
| 6152 | 6152 |
| 6153 test_uriDoesNotExist_import_appears_after_deleting_target() async { | 6153 test_uriDoesNotExist_import_appears_after_deleting_target() async { |
| 6154 Source test = addSource("import 'target.dart';"); | 6154 Source test = addSource("import 'target.dart';"); |
| 6155 Source target = addNamedSource("/target.dart", ""); | 6155 Source target = addNamedSource("/target.dart", ""); |
| 6156 await computeAnalysisResult(test); | 6156 await computeAnalysisResult(test); |
| 6157 assertErrors(test, [HintCode.UNUSED_IMPORT]); | 6157 assertErrors(test, [HintCode.UNUSED_IMPORT]); |
| 6158 | 6158 |
| 6159 // Remove the overlay in the same way as AnalysisServer. | 6159 // Remove the overlay in the same way as AnalysisServer. |
| 6160 resourceProvider.deleteFile('/target.dart'); | 6160 resourceProvider.deleteFile(resourceProvider.convertPath('/target.dart')); |
| 6161 analysisContext2.setContents(target, null); | 6161 analysisContext2.setContents(target, null); |
| 6162 ChangeSet changeSet = new ChangeSet()..removedSource(target); | 6162 ChangeSet changeSet = new ChangeSet()..removedSource(target); |
| 6163 analysisContext2.applyChanges(changeSet); | 6163 analysisContext2.applyChanges(changeSet); |
| 6164 | 6164 |
| 6165 await computeAnalysisResult(test); | 6165 await computeAnalysisResult(test); |
| 6166 assertErrors(test, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]); | 6166 assertErrors(test, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]); |
| 6167 } | 6167 } |
| 6168 | 6168 |
| 6169 test_uriDoesNotExist_import_disappears_when_fixed() async { | 6169 test_uriDoesNotExist_import_disappears_when_fixed() async { |
| 6170 Source source = addSource("import 'target.dart';"); | 6170 Source source = addSource("import 'target.dart';"); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6522 test_uriDoesNotExist_import_disappears_when_fixed() { | 6522 test_uriDoesNotExist_import_disappears_when_fixed() { |
| 6523 return super.test_uriDoesNotExist_import_disappears_when_fixed(); | 6523 return super.test_uriDoesNotExist_import_disappears_when_fixed(); |
| 6524 } | 6524 } |
| 6525 | 6525 |
| 6526 @failingTest | 6526 @failingTest |
| 6527 @override | 6527 @override |
| 6528 test_uriWithInterpolation_nonConstant() { | 6528 test_uriWithInterpolation_nonConstant() { |
| 6529 return super.test_uriWithInterpolation_nonConstant(); | 6529 return super.test_uriWithInterpolation_nonConstant(); |
| 6530 } | 6530 } |
| 6531 } | 6531 } |
| OLD | NEW |