Skip to content

Commit 5815e34

Browse files
committed
Test for LibraryElement.hasExtUri resynth.
[email protected] BUG= Review URL: https://codereview.chromium.org/1578263003 .
1 parent 958e713 commit 5815e34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/analyzer/test/src/summary/resynthesize_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class ResynthTest extends ResolverTestCase {
4949
expect(resynthesized.displayName, original.displayName);
5050
expect(original.enclosingElement, isNull);
5151
expect(resynthesized.enclosingElement, isNull);
52+
expect(resynthesized.hasExtUri, original.hasExtUri);
5253
compareCompilationUnitElements(resynthesized.definingCompilationUnit,
5354
original.definingCompilationUnit);
5455
expect(resynthesized.parts.length, original.parts.length);
@@ -486,6 +487,10 @@ class ResynthTest extends ResolverTestCase {
486487
// TODO(paulberry): test initializer
487488
}
488489

490+
fail_library_hasExtUri() {
491+
checkLibrary('import "dart-ext:doesNotExist.dart";');
492+
}
493+
489494
LibraryElementImpl resynthesizeLibrary(
490495
Source source, LibraryElementImpl original, bool allowErrors,
491496
{int resynthesisCount: 1}) {

0 commit comments

Comments
 (0)