77import com .jetbrains .lang .dart .ide .documentation .DartDocumentationProvider ;
88import com .jetbrains .lang .dart .util .DartTestUtils ;
99import org .dartlang .analysis .server .protocol .HoverInformation ;
10+ import org .junit .Ignore ;
1011
12+ /* Fix once the version of dart goes to 3.10
13+ * https://github.com/flutter/dart-intellij-third-party/issues/51
14+ */
15+ @ Ignore
1116public class DartServerDocUtilTest extends CodeInsightFixtureTestCase {
1217 @ Override
1318 public void setUp () throws Exception {
@@ -98,7 +103,7 @@ class <caret>A{}""");
98103
99104 public void testConstructorSig1 () {
100105 // unnamed constructor at declaration
101- doTest ("<code><b>test.dart</b><br>A A (int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
106+ doTest ("<code><b>test.dart</b><br>A(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
102107 "<p>constructor comment</p>" ,
103108
104109 "class A { /** constructor comment */ A<caret>(int one, int two); }" );
@@ -107,15 +112,15 @@ public void testConstructorSig1() {
107112 public void testConstructorSig2 () {
108113 // named constructor at declaration
109114 doTest (
110- "<code><b>test.dart</b><br>A A .name(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
115+ "<code><b>test.dart</b><br>A.name(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
111116 "<p>constructor comment</p>" ,
112117
113118 "class A { /** constructor comment */ A.name<caret>(int one, int two); }" );
114119 }
115120
116121 public void testConstructorSig3 () {
117122 // unnamed constructor at instantiation
118- doTest ("<code><b>test.dart</b><br>A A (int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
123+ doTest ("<code><b>test.dart</b><br>A(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
119124 "<p>constructor comment</p>" ,
120125
121126 "class A { /** constructor comment */ A(int one, int two);}" +
@@ -125,7 +130,7 @@ public void testConstructorSig3() {
125130 public void testConstructorSig4 () {
126131 // named constructor at instantiation
127132 doTest (
128- "<code><b>test.dart</b><br>A A .name(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
133+ "<code><b>test.dart</b><br>A.name(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
129134 "<p>constructor comment</p>" ,
130135
131136 "class A { /** constructor comment */ A.name(int one, int two); }" +
@@ -135,7 +140,7 @@ public void testConstructorSig4() {
135140 public void testConstructorSig5 () {
136141 // unnamed constructor at instantiation, implicit new
137142 doTest (
138- "<code><b>test.dart</b><br>(new) A A (int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
143+ "<code><b>test.dart</b><br>(new) A(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
139144 "<p>constructor comment</p>" ,
140145
141146 "class A { /** constructor comment */ A(int one, int two); }" +
@@ -145,7 +150,7 @@ public void testConstructorSig5() {
145150 public void testConstructorSig6 () {
146151 // named constructor at instantiation, implicit new
147152 doTest (
148- "<code><b>test.dart</b><br>(new) A A .name(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
153+ "<code><b>test.dart</b><br>(new) A.name(int one, int two)<br><br><b>Containing class:</b> A<br><br></code>\n " +
149154 "<p>constructor comment</p>" ,
150155
151156 "class A { /** constructor comment */ A.name(int one, int two); }" +
@@ -338,7 +343,7 @@ public void testMixinSig2() {
338343 }
339344
340345 public void testNamedConstructorSig () {
341- doTest ("<code><b>test.dart</b><br>Z Z .z()<br><br><b>Containing class:</b> Z<br><br></code>" , "class Z { <caret>Z.z(); }" );
346+ doTest ("<code><b>test.dart</b><br>Z.z()<br><br><b>Containing class:</b> Z<br><br></code>" , "class Z { <caret>Z.z(); }" );
342347 }
343348
344349 public void testParamClassSig () {
@@ -403,7 +408,7 @@ public void testTopLevelVarDoc2() {
403408 }
404409
405410 public void testTypedefSig () {
406- doTest ("<code><b>test.dart</b><br>typedef F = int Function(int x )<br><br></code>" ,
411+ doTest ("<code><b>test.dart</b><br>typedef F = int Function(int)<br><br></code>" ,
407412 "typedef int <caret>F(int x);" );
408413 }
409414
0 commit comments