Skip to content

Commit d101939

Browse files
committed
Bug 1396778 - Unskip multiline variants tests
1 parent 594f9d9 commit d101939

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

tests/syntax/test_serializer.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,23 +214,31 @@ def test_select_expression(self):
214214
"""
215215
self.assertEqual(pretty_ftl(input), dedent_ftl(input))
216216

217-
@unittest.skip("Parsing error")
217+
# XXX The variant contains a new-line so the serializer defaults to
218+
# multiline formatting for all of its contents.
219+
# https://bugzilla.mozilla.org/show_bug.cgi?id=1397760
218220
def test_variant_multiline_first_inline(self):
219221
input = """\
220222
foo = {
221223
*[a] AAA
222224
BBB
223225
}
224226
"""
225-
self.assertEqual(pretty_ftl(input), dedent_ftl(input))
227+
output = """\
228+
foo = {
229+
*[a]
230+
AAA
231+
BBB
232+
}
233+
"""
234+
self.assertEqual(pretty_ftl(input), dedent_ftl(output))
226235

227-
@unittest.skip("Parsing error")
228236
def test_variant_multiline(self):
229237
input = """\
230238
foo = {
231239
*[a]
232-
AAA
233-
BBB
240+
AAA
241+
BBB
234242
}
235243
"""
236244
self.assertEqual(pretty_ftl(input), dedent_ftl(input))

0 commit comments

Comments
 (0)