Skip to content

Commit 3e43d5a

Browse files
author
Florian Videau
committed
added tests assets for js template literals
1 parent 3a34c91 commit 3e43d5a

11 files changed

Lines changed: 77 additions & 15 deletions

File tree

tests/assets/vuejs/Csv.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ some-context,js-action,
2222
,t-v-bind,
2323
context,t-action,
2424
,t-v-text,
25+
,back-tick-in-tag,
2526
,t-text,
2627
,t-singular,
2728
,t-tag,
@@ -36,6 +37,7 @@ context,t-action,
3637
,t-spaces-expr2,
3738
,t-p1(parentheses),
3839
context2,t-action2,
40+
,back-tick-in-mustache,
3941
,t-tag-2,
4042
,v-translate-attribute,
4143
,v-translate-attribute-single,

tests/assets/vuejs/CsvDictionary.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ t-singular2,
1313
t-v-bind,
1414
t-action,
1515
t-v-text,
16+
back-tick-in-tag,
1617
t-text,
1718
t-singular,
1819
t-tag,
@@ -27,6 +28,7 @@ t-spaces-expr,
2728
t-spaces-expr2,
2829
t-p1(parentheses),
2930
t-action2,
31+
back-tick-in-mustache,
3032
t-tag-2,
3133
v-translate-attribute,
3234
v-translate-attribute-single,

tests/assets/vuejs/Jed.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
"t-v-text": [
5151
""
5252
],
53+
"back-tick-in-tag": [
54+
""
55+
],
5356
"t-text": [
5457
""
5558
],
@@ -92,6 +95,9 @@
9295
"context2\\u0004t-action2": [
9396
""
9497
],
98+
"back-tick-in-mustache": [
99+
""
100+
],
95101
"t-tag-2": [
96102
""
97103
],

tests/assets/vuejs/Json.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
"t-v-text": [
4646
""
4747
],
48+
"back-tick-in-tag": [
49+
""
50+
],
4851
"t-text": [
4952
""
5053
],
@@ -84,6 +87,9 @@
8487
"t-p1(parentheses)": [
8588
""
8689
],
90+
"back-tick-in-mustache": [
91+
""
92+
],
8793
"t-tag-2": [
8894
""
8995
],

tests/assets/vuejs/JsonDictionary.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"t-v-bind": "",
1515
"t-action": "",
1616
"t-v-text": "",
17+
"back-tick-in-tag": "",
1718
"t-text": "",
1819
"t-singular": "",
1920
"t-tag": "",
@@ -28,6 +29,7 @@
2829
"t-spaces-expr2": "",
2930
"t-p1(parentheses)": "",
3031
"t-action2": "",
32+
"back-tick-in-mustache": "",
3133
"t-tag-2": "",
3234
"v-translate-attribute": "",
3335
"v-translate-attribute-single": ""

tests/assets/vuejs/PhpArray.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
array (
7070
0 => '',
7171
),
72+
'back-tick-in-tag' =>
73+
array (
74+
0 => '',
75+
),
7276
't-text' =>
7377
array (
7478
0 => '',
@@ -121,6 +125,10 @@
121125
array (
122126
0 => '',
123127
),
128+
'back-tick-in-mustache' =>
129+
array (
130+
0 => '',
131+
),
124132
't-tag-2' =>
125133
array (
126134
0 => '',

tests/assets/vuejs/Po.po

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,34 @@ msgstr ""
99
"Project-Id-Version: \n"
1010
"Report-Msgid-Bugs-To: \n"
1111

12-
#: ./tests/assets/vuejs/input.vue:51
12+
#: ./tests/assets/vuejs/input.vue:55
1313
msgid "js-expr1"
1414
msgstr ""
1515

16-
#: ./tests/assets/vuejs/input.vue:51
16+
#: ./tests/assets/vuejs/input.vue:55
1717
msgid "js-expr2"
1818
msgstr ""
1919

20-
#: ./tests/assets/vuejs/input.vue:53
20+
#: ./tests/assets/vuejs/input.vue:57
2121
msgid "js-alert"
2222
msgstr ""
2323

24-
#: ./tests/assets/vuejs/input.vue:56
24+
#: ./tests/assets/vuejs/input.vue:60
2525
msgid "js-single"
2626
msgid_plural "js-plural"
2727
msgstr[0] ""
2828

29-
#: ./tests/assets/vuejs/input.vue:60
29+
#: ./tests/assets/vuejs/input.vue:64
3030
msgid "js-obj-single"
3131
msgid_plural "js-obj-plural"
3232
msgstr[0] ""
3333

34-
#: ./tests/assets/vuejs/input.vue:63
34+
#: ./tests/assets/vuejs/input.vue:67
3535
msgctxt "some-context"
3636
msgid "js-action"
3737
msgstr ""
3838

39-
#: ./tests/assets/vuejs/input.vue:65
39+
#: ./tests/assets/vuejs/input.vue:69
4040
msgid "<span>js-return</span><br>"
4141
msgstr ""
4242

@@ -77,6 +77,10 @@ msgstr ""
7777
msgid "t-v-text"
7878
msgstr ""
7979

80+
#: ./tests/assets/vuejs/input.vue:45
81+
msgid "back-tick-in-tag"
82+
msgstr ""
83+
8084
#: ./tests/assets/vuejs/input.vue:3
8185
msgid "t-text"
8286
msgstr ""
@@ -136,6 +140,10 @@ msgctxt "context2"
136140
msgid "t-action2"
137141
msgstr ""
138142

143+
#: ./tests/assets/vuejs/input.vue:46
144+
msgid "back-tick-in-mustache"
145+
msgstr ""
146+
139147
#: ./tests/assets/vuejs/input.vue:37
140148
msgid "t-tag-2"
141149
msgstr ""

tests/assets/vuejs/Xliff.xlf

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<unit id="38dbba24eb02d64da6159a778a36d73a">
1515
<notes>
1616
<note category="context"></note>
17-
<note category="reference">./tests/assets/vuejs/input.vue:51</note>
17+
<note category="reference">./tests/assets/vuejs/input.vue:55</note>
1818
</notes>
1919
<segment>
2020
<source>js-expr1</source>
@@ -24,7 +24,7 @@
2424
<unit id="e8955f4e596af6cbcdfb35f22ba26dbd">
2525
<notes>
2626
<note category="context"></note>
27-
<note category="reference">./tests/assets/vuejs/input.vue:51</note>
27+
<note category="reference">./tests/assets/vuejs/input.vue:55</note>
2828
</notes>
2929
<segment>
3030
<source>js-expr2</source>
@@ -34,7 +34,7 @@
3434
<unit id="4819d163f4b26023f7ba7d6a20d8473e">
3535
<notes>
3636
<note category="context"></note>
37-
<note category="reference">./tests/assets/vuejs/input.vue:53</note>
37+
<note category="reference">./tests/assets/vuejs/input.vue:57</note>
3838
</notes>
3939
<segment>
4040
<source>js-alert</source>
@@ -44,7 +44,7 @@
4444
<unit id="8a33b4fd199bcbc69fbdf4c7bce48b90">
4545
<notes>
4646
<note category="context"></note>
47-
<note category="reference">./tests/assets/vuejs/input.vue:56</note>
47+
<note category="reference">./tests/assets/vuejs/input.vue:60</note>
4848
</notes>
4949
<segment>
5050
<source>js-single</source>
@@ -54,7 +54,7 @@
5454
<unit id="b81ee1ffb034bd2cf1ec589349c4d069">
5555
<notes>
5656
<note category="context"></note>
57-
<note category="reference">./tests/assets/vuejs/input.vue:60</note>
57+
<note category="reference">./tests/assets/vuejs/input.vue:64</note>
5858
</notes>
5959
<segment>
6060
<source>js-obj-single</source>
@@ -64,7 +64,7 @@
6464
<unit id="db5923b843960d8cc6e2064bb2d4fbc2">
6565
<notes>
6666
<note category="context">some-context</note>
67-
<note category="reference">./tests/assets/vuejs/input.vue:63</note>
67+
<note category="reference">./tests/assets/vuejs/input.vue:67</note>
6868
</notes>
6969
<segment>
7070
<source>js-action</source>
@@ -74,7 +74,7 @@
7474
<unit id="165738b03fc41d793cf080ad7f3bf5e3">
7575
<notes>
7676
<note category="context"></note>
77-
<note category="reference">./tests/assets/vuejs/input.vue:65</note>
77+
<note category="reference">./tests/assets/vuejs/input.vue:69</note>
7878
</notes>
7979
<segment>
8080
<source><![CDATA[<span>js-return</span><br>]]></source>
@@ -163,6 +163,16 @@
163163
<target></target>
164164
</segment>
165165
</unit>
166+
<unit id="b919d0af5720cc8fc708afa7e33bb16c">
167+
<notes>
168+
<note category="context"></note>
169+
<note category="reference">./tests/assets/vuejs/input.vue:45</note>
170+
</notes>
171+
<segment>
172+
<source>back-tick-in-tag</source>
173+
<target></target>
174+
</segment>
175+
</unit>
166176
<unit id="89585a1f45ac926e8807a68a4d9b1ad9">
167177
<notes>
168178
<note category="context"></note>
@@ -303,6 +313,16 @@
303313
<target></target>
304314
</segment>
305315
</unit>
316+
<unit id="f0190d1513aa17c45b9b8f784938cd28">
317+
<notes>
318+
<note category="context"></note>
319+
<note category="reference">./tests/assets/vuejs/input.vue:46</note>
320+
</notes>
321+
<segment>
322+
<source>back-tick-in-mustache</source>
323+
<target></target>
324+
</segment>
325+
</unit>
306326
<unit id="366e5ec376b0ffdf583eeb223e42ff79">
307327
<notes>
308328
<note category="context"></note>

tests/assets/vuejs/Yaml.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ messages:
1717
t-singular2: ''
1818
t-v-bind: ''
1919
t-v-text: ''
20+
back-tick-in-tag: ''
2021
t-text: ''
2122
t-singular: ''
2223
t-tag: ''
@@ -30,6 +31,7 @@ messages:
3031
t-spaces-expr: ''
3132
t-spaces-expr2: ''
3233
t-p1(parentheses): ''
34+
back-tick-in-mustache: ''
3335
t-tag-2: ''
3436
v-translate-attribute: ''
3537
v-translate-attribute-single: ''

tests/assets/vuejs/YamlDictionary.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ t-singular2: ''
1313
t-v-bind: ''
1414
t-action: ''
1515
t-v-text: ''
16+
back-tick-in-tag: ''
1617
t-text: ''
1718
t-singular: ''
1819
t-tag: ''
@@ -27,6 +28,7 @@ t-spaces-expr: ''
2728
t-spaces-expr2: ''
2829
t-p1(parentheses): ''
2930
t-action2: ''
31+
back-tick-in-mustache: ''
3032
t-tag-2: ''
3133
v-translate-attribute: ''
3234
v-translate-attribute-single: ''

0 commit comments

Comments
 (0)