@@ -115,7 +115,9 @@ void commentMostlyUntouched() {
115115 }
116116
117117 @ Test
118- void moeComments () {
118+ void moeStripMarkersAreOrdinaryHtmlComments () {
119+ // google/MOE is gone: its intracomment-strip markers are HTML comments like any other, each on a line of its
120+ // own, indented like the text around it, with the blank line a <p> asks for staying with the <p>.
119121 String [] input = {
120122 "/**" ,
121123 " * Deatomizes the given user." ,
@@ -147,8 +149,8 @@ void moeComments() {
147149 " * See go/deatomizer-v5 for the design doc." ,
148150 " * <!-- MOE:end_intracomment_strip -->" ,
149151 " * To reatomize, call {@link reatomize}." ,
150- " *" ,
151152 " * <!-- MOE:begin_intracomment_strip -->" ,
153+ " *" ,
152154 " * <p>This method is used in the Google teleporter." ,
153155 " *" ,
154156 " * <p>Yes, we have a teleporter." ,
@@ -158,69 +160,9 @@ void moeComments() {
158160 " * <!-- MOE:begin_intracomment_strip -->" ,
159161 " * Users must sign go/deatomize-waiver ahead of time." ,
160162 " * <!-- MOE:end_intracomment_strip -->" ,
161- " * <!-- MOE:begin_intracomment_strip -->" ,
163+ " * <!-- MOE:begin_intracomment_strip -->" ,
162164 " * @deprecated Sometimes turns the user into a goat." ,
163- " * <!-- MOE:end_intracomment_strip -->" ,
164- " */" ,
165- "class Test {}" ,
166- };
167- doFormatTest (input , expected );
168- }
169-
170- @ Test
171- void moeCommentBeginOnlyInMiddleOfDoc () {
172- // We don't really care what happens here so long as we don't explode.
173- String [] input = {
174- "/**" , //
175- " * Foo." ,
176- " * <!-- MOE:begin_intracomment_strip -->" ,
177- " * Bar." ,
178- " */" ,
179- "class Test {}" ,
180- };
181- String [] expected = {
182- "/**" , //
183- " * Foo." ,
184- " * <!-- MOE:begin_intracomment_strip -->" ,
185- " * Bar." ,
186- " */" ,
187- "class Test {}" ,
188- };
189- doFormatTest (input , expected );
190- }
191-
192- @ Test
193- void moeCommentBeginOnlyAtEndOfDoc () {
194- // We don't really care what happens here so long as we don't explode.
195- // TODO(cpovirk): OK, maybe try to leave it in....
196- String [] input = {
197- "/**" , //
198- " * Foo." ,
199- " * <!-- MOE:begin_intracomment_strip -->" ,
200- " */" ,
201- "class Test {}" ,
202- };
203- String [] expected = {
204- "/** Foo. */" , //
205- "class Test {}" ,
206- };
207- doFormatTest (input , expected );
208- }
209-
210- @ Test
211- void moeCommentEndOnly () {
212- // We don't really care what happens here so long as we don't explode.
213- String [] input = {
214- "/**" , //
215- " * Foo." ,
216- " * <!-- MOE:end_intracomment_strip -->" ,
217- " */" ,
218- "class Test {}" ,
219- };
220- String [] expected = {
221- "/**" , //
222- " * Foo." ,
223- " * <!-- MOE:end_intracomment_strip -->" ,
165+ " * <!-- MOE:end_intracomment_strip -->" ,
224166 " */" ,
225167 "class Test {}" ,
226168 };
0 commit comments