Skip to content

Commit 54b8a44

Browse files
committed
Fixed tests to match the returned output from the Dart Analysis Server.
1 parent d595657 commit 54b8a44

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

third_party/src/test/java/com/jetbrains/dart/analysisServer/DartServerDocUtilTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class <caret>A{}""");
9898

9999
public void testConstructorSig1() {
100100
// unnamed constructor at declaration
101-
doTest("<code><b>test.dart</b><br>A&nbsp;A(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
101+
doTest("<code><b>test.dart</b><br>A(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
102102
"<p>constructor comment</p>",
103103

104104
"class A { /** constructor comment */ A<caret>(int one, int two); }");
@@ -107,15 +107,15 @@ public void testConstructorSig1() {
107107
public void testConstructorSig2() {
108108
// named constructor at declaration
109109
doTest(
110-
"<code><b>test.dart</b><br>A&nbsp;A.name(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
110+
"<code><b>test.dart</b><br>A.name(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
111111
"<p>constructor comment</p>",
112112

113113
"class A { /** constructor comment */ A.name<caret>(int one, int two); }");
114114
}
115115

116116
public void testConstructorSig3() {
117117
// unnamed constructor at instantiation
118-
doTest("<code><b>test.dart</b><br>A&nbsp;A(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
118+
doTest("<code><b>test.dart</b><br>A(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
119119
"<p>constructor comment</p>",
120120

121121
"class A { /** constructor comment */ A(int one, int two);}" +
@@ -125,7 +125,7 @@ public void testConstructorSig3() {
125125
public void testConstructorSig4() {
126126
// named constructor at instantiation
127127
doTest(
128-
"<code><b>test.dart</b><br>A&nbsp;A.name(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
128+
"<code><b>test.dart</b><br>A.name(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
129129
"<p>constructor comment</p>",
130130

131131
"class A { /** constructor comment */ A.name(int one, int two); }" +
@@ -135,7 +135,7 @@ public void testConstructorSig4() {
135135
public void testConstructorSig5() {
136136
// unnamed constructor at instantiation, implicit new
137137
doTest(
138-
"<code><b>test.dart</b><br>(new)&nbsp;A&nbsp;A(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
138+
"<code><b>test.dart</b><br>(new)&nbsp;A(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
139139
"<p>constructor comment</p>",
140140

141141
"class A { /** constructor comment */ A(int one, int two); }" +
@@ -145,7 +145,7 @@ public void testConstructorSig5() {
145145
public void testConstructorSig6() {
146146
// named constructor at instantiation, implicit new
147147
doTest(
148-
"<code><b>test.dart</b><br>(new)&nbsp;A&nbsp;A.name(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
148+
"<code><b>test.dart</b><br>(new)&nbsp;A.name(int&nbsp;one,&nbsp;int&nbsp;two)<br><br><b>Containing class:</b> A<br><br></code>\n" +
149149
"<p>constructor comment</p>",
150150

151151
"class A { /** constructor comment */ A.name(int one, int two); }" +

0 commit comments

Comments
 (0)