| Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| index 6aacdf5afb7fb7d02cd3acaeb07a384034ddec71..cb2c82c4d15a89e6b398bc603155ba2c4079342f 100644
|
| --- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| +++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| @@ -2113,28 +2113,17 @@ class C {
|
|
|
| test_class_documented() async {
|
| var library = await checkLibrary('''
|
| -// Extra comment so doc comment offset != 0
|
| /**
|
| * Docs
|
| */
|
| class C {}''');
|
| - if (isStrongMode) {
|
| - checkElementText(library, r'''
|
| -/**
|
| - * Docs
|
| - */
|
| -class C {
|
| -}
|
| -''');
|
| - } else {
|
| - checkElementText(library, r'''
|
| + checkElementText(library, r'''
|
| /**
|
| * Docs
|
| */
|
| class C {
|
| }
|
| ''');
|
| - }
|
| }
|
|
|
| test_class_documented_tripleSlash() async {
|
| @@ -2219,6 +2208,22 @@ class C {
|
| }
|
| }
|
|
|
| + test_class_documented_withLeadingNotDocumentation() async {
|
| + var library = await checkLibrary('''
|
| +// Extra comment so doc comment offset != 0
|
| +/**
|
| + * Docs
|
| + */
|
| +class C {}''');
|
| + checkElementText(library, r'''
|
| +/**
|
| + * Docs
|
| + */
|
| +class C {
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_class_field_const() async {
|
| var library = await checkLibrary('class C { static const int i = 0; }');
|
| if (isStrongMode) {
|
|
|