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

Unified Diff: pkg/analysis_server/test/completion_test.dart

Issue 803913003: fix named constructor completion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
Index: pkg/analysis_server/test/completion_test.dart
diff --git a/pkg/analysis_server/test/completion_test.dart b/pkg/analysis_server/test/completion_test.dart
index 9b5b4b897e969b34e9ddcdf143af9a274edb047c..faafc4fc4f9bffc4564953fe8673a75008ab76b6 100644
--- a/pkg/analysis_server/test/completion_test.dart
+++ b/pkg/analysis_server/test/completion_test.dart
@@ -121,8 +121,7 @@ class Map{}class F{m(){new !1''', <String>["1+Map"], failingTests: '1');
CompletionTestCase.buildTests('testCommentSnippets022b', '''
class Map{factory Map.qq(){return null;}}class F{m(){new Map.!1qq();}}''',
- <String>["1+qq"],
- failingTests: '1');
+ <String>["1+qq"]);
CompletionTestCase.buildTests('testCommentSnippets023', '''
class X {X c; X(this.!1c!3) : super() {c.!2}}''',
@@ -182,8 +181,7 @@ class List{}t3() {var x=new List!1}''', <String>["1+List"], failingTests: '1');
CompletionTestCase.buildTests('testCommentSnippets037', '''
class List{factory List.from(){}}t3() {var x=new List.!1}''',
- <String>["1+from"],
- failingTests: '1');
+ <String>["1+from"]);
CompletionTestCase.buildTests('testCommentSnippets038', '''
f(){int xa; String s = '\$x!1';}''', <String>["1+xa"]);
@@ -263,7 +261,7 @@ k() {
"2-xdr.b",
"3-b",
"3+a"],
- failingTests: '123');
+ failingTests: '12');
// Type propagation.
CompletionTestCase.buildTests('testCommentSnippets051', '''
@@ -1419,7 +1417,7 @@ class A {
}
main() {
new A.!1
-}''', <String>["1+_c", "1+c"], failingTests: '1');
+}''', <String>["1+_c", "1+c"]);
CompletionTestCase.buildTests(
'testCompletion_privateElement_sameLibrary_member',
@@ -1883,7 +1881,7 @@ class A {
A.b() : this();
A.c() : this.!2b();
g() => new A.!3c();
-}''', <String>["1+x", "2+b", "3+c"], failingTests: '23');
+}''', <String>["1+x", "2+b", "3+c"], failingTests: '2');
CompletionTestCase.buildTests('test005', '''
class A {}
@@ -2180,7 +2178,7 @@ class F {
f() {
new List.!1
}
-}''', <String>["1+from"], failingTests: '1');
+}''', <String>["1+from"]);
CompletionTestCase.buildTests('test025', '''
class R {

Powered by Google App Engine
This is Rietveld 408576698