Index: pkg/analyzer/test/src/summary/resynthesize_test.dart |
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart |
index 49f4b69b5b29ad6d06b637ef3ad62633c88a1683..08f404a4a04413d28d0b8aa6899263c64485e03b 100644 |
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart |
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart |
@@ -61,8 +61,9 @@ class ResynthTest extends ResolverTestCase { |
expect(resynthesized.exports.length, original.exports.length); |
for (int i = 0; i < resynthesized.exports.length; i++) { |
compareExportElements(resynthesized.exports[i], original.exports[i], |
- 'export ${original.exports[i].name}'); |
+ 'export ${original.exports[i].uri}'); |
} |
+ expect(resynthesized.nameLength, original.nameLength); |
// TODO(paulberry): test entryPoint, exportNamespace, publicNamespace, |
// and metadata. |
} |
@@ -189,6 +190,7 @@ class ResynthTest extends ResolverTestCase { |
expect(resynthesized.kind, original.kind); |
expect(resynthesized.location, original.location, reason: desc); |
expect(resynthesized.name, original.name); |
+ expect(resynthesized.nameOffset, original.nameOffset, reason: desc); |
for (Modifier modifier in Modifier.values) { |
if (modifier == Modifier.MIXIN) { |
// Skipping for now. TODO(paulberry): fix. |
@@ -900,6 +902,10 @@ class E { |
checkLibrary(''); |
} |
+ test_library_name_with_spaces() { |
+ checkLibrary('library foo . bar ;'); |
+ } |
+ |
test_library_named() { |
checkLibrary('library foo.bar;'); |
} |