Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1814)

Unified Diff: pkg/analyzer/test/generated/incremental_resolver_test.dart

Issue 913573002: Fix for incremental resolution in case of inserting a new token into elegant comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/incremental_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
index 5e41ef607417a0352e99f2fdd8e08f950bbef8b4..314b7ca4729ad87a41eed13a51f5009b9ff471cd 100644
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
@@ -2779,6 +2779,38 @@ main() {
''');
}
+ void test_dartDoc_elegant_updateText_insertToken() {
+ _resolveUnit(r'''
+/// A
+/// [int]
+class Test {
+}
+''');
+ _updateAndValidate(r'''
+/// A
+///
+/// [int]
+class Test {
+}
+''');
+ }
+
+ void test_dartDoc_elegant_updateText_removeToken() {
+ _resolveUnit(r'''
+/// A
+///
+/// [int]
+class Test {
+}
+''');
+ _updateAndValidate(r'''
+/// A
+/// [int]
+class Test {
+}
+''');
+ }
+
void test_endOfLineComment_add_beforeKeywordToken() {
_resolveUnit(r'''
main() {
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698