File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -214,23 +214,31 @@ def test_select_expression(self):
214
214
"""
215
215
self .assertEqual (pretty_ftl (input ), dedent_ftl (input ))
216
216
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
218
220
def test_variant_multiline_first_inline (self ):
219
221
input = """\
220
222
foo = {
221
223
*[a] AAA
222
224
BBB
223
225
}
224
226
"""
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 ))
226
235
227
- @unittest .skip ("Parsing error" )
228
236
def test_variant_multiline (self ):
229
237
input = """\
230
238
foo = {
231
239
*[a]
232
- AAA
233
- BBB
240
+ AAA
241
+ BBB
234
242
}
235
243
"""
236
244
self .assertEqual (pretty_ftl (input ), dedent_ftl (input ))
You can’t perform that action at this time.
0 commit comments