Skip to content

Commit 8e98f49

Browse files
committed
Remove the indentation of test FTL
1 parent 33dcbf0 commit 8e98f49

File tree

1 file changed

+38
-39
lines changed

1 file changed

+38
-39
lines changed

fluent/test/compat_0.4_0.5_test.js

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import assert from 'assert';
44

55
import { MessageContext } from '../src/context';
6-
import { ftl } from './util';
76

87
suite('Compatibility', function () {
98
suite('browser/preferences/main.ftl', function () {
@@ -18,12 +17,12 @@ suite('Compatibility', function () {
1817

1918
test('0.4 syntax', function () {
2019
const ctx = new MessageContext('en-US', { useIsolating: false });
21-
const parsingErrors = ctx.addMessages(ftl`
22-
// Variables:
23-
// $num - default value of the \`dom.ipc.processCount\` pref.
24-
default-content-process-count
25-
.label = { $num } (default)
26-
`);
20+
const parsingErrors = ctx.addMessages(`
21+
// Variables:
22+
// $num - default value of the \`dom.ipc.processCount\` pref.
23+
default-content-process-count
24+
.label = { $num } (default)
25+
`);
2726

2827
assert.deepEqual(parsingErrors, []);
2928

@@ -42,12 +41,12 @@ suite('Compatibility', function () {
4241

4342
test('0.5 syntax', function () {
4443
const ctx = new MessageContext('en-US', { useIsolating: false });
45-
const parsingErrors = ctx.addMessages(ftl`
46-
# Variables:
47-
# $num - default value of the \`dom.ipc.processCount\` pref.
48-
default-content-process-count =
49-
.label = { $num } (default)
50-
`);
44+
const parsingErrors = ctx.addMessages(`
45+
# Variables:
46+
# $num - default value of the \`dom.ipc.processCount\` pref.
47+
default-content-process-count =
48+
.label = { $num } (default)
49+
`);
5150

5251
assert.deepEqual(parsingErrors, [
5352
new SyntaxError('Expected an identifier (starting with [a-zA-Z_])')
@@ -77,20 +76,20 @@ suite('Compatibility', function () {
7776

7877
test('0.4 syntax', function () {
7978
const ctx = new MessageContext('en-US', { useIsolating: false });
80-
const parsingErrors = ctx.addMessages(ftl`
81-
// This Source Code Form is subject to the terms of the Mozilla Public
82-
// License, v. 2.0. If a copy of the MPL was not distributed with this
83-
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
79+
const parsingErrors = ctx.addMessages(`
80+
// This Source Code Form is subject to the terms of the Mozilla Public
81+
// License, v. 2.0. If a copy of the MPL was not distributed with this
82+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8483
85-
[[ Do Not Track ]]
84+
[[ Do Not Track ]]
8685
87-
do-not-track-description = Send websites a “Do Not Track” signal
88-
do-not-track-learn-more = Learn more
89-
do-not-track-option-default
90-
.label = Only when using Tracking Protection
91-
do-not-track-option-always
92-
.label = Always
93-
`);
86+
do-not-track-description = Send websites a “Do Not Track” signal
87+
do-not-track-learn-more = Learn more
88+
do-not-track-option-default
89+
.label = Only when using Tracking Protection
90+
do-not-track-option-always
91+
.label = Always
92+
`);
9493

9594
assert.deepEqual(parsingErrors, []);
9695

@@ -121,20 +120,20 @@ suite('Compatibility', function () {
121120

122121
test('0.5 syntax', function () {
123122
const ctx = new MessageContext('en-US', { useIsolating: false });
124-
const parsingErrors = ctx.addMessages(ftl`
125-
# This Source Code Form is subject to the terms of the Mozilla Public
126-
# License, v. 2.0. If a copy of the MPL was not distributed with this
127-
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
128-
129-
## Do Not Track
130-
131-
do-not-track-description = Send websites a “Do Not Track” signal
132-
do-not-track-learn-more = Learn more
133-
do-not-track-option-default =
134-
.label = Only when using Tracking Protection
135-
do-not-track-option-always =
136-
.label = Always
137-
`);
123+
const parsingErrors = ctx.addMessages(`
124+
# This Source Code Form is subject to the terms of the Mozilla Public
125+
# License, v. 2.0. If a copy of the MPL was not distributed with this
126+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
127+
128+
## Do Not Track
129+
130+
do-not-track-description = Send websites a “Do Not Track” signal
131+
do-not-track-learn-more = Learn more
132+
do-not-track-option-default =
133+
.label = Only when using Tracking Protection
134+
do-not-track-option-always =
135+
.label = Always
136+
`);
138137

139138
assert.deepEqual(parsingErrors, [
140139
new SyntaxError('Expected an identifier (starting with [a-zA-Z_])')

0 commit comments

Comments
 (0)