Skip to content

Commit 4de7b81

Browse files
committed
Fix: remove \r in tests
1 parent 04d6f1c commit 4de7b81

File tree

3 files changed

+65
-65
lines changed

3 files changed

+65
-65
lines changed

test/fixtures/ast/error-duplicate-attribute/ast.json

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"type": "VElement",
2525
"range": [
2626
0,
27-
54
27+
52
2828
],
2929
"loc": {
3030
"start": {
@@ -61,7 +61,7 @@
6161
"type": "VText",
6262
"range": [
6363
10,
64-
16
64+
15
6565
],
6666
"loc": {
6767
"start": {
@@ -73,13 +73,13 @@
7373
"column": 4
7474
}
7575
},
76-
"value": "\r "
76+
"value": "\n "
7777
},
7878
{
7979
"type": "VElement",
8080
"range": [
81-
16,
82-
41
81+
15,
82+
40
8383
],
8484
"loc": {
8585
"start": {
@@ -96,8 +96,8 @@
9696
"startTag": {
9797
"type": "VStartTag",
9898
"range": [
99-
16,
100-
35
99+
15,
100+
34
101101
],
102102
"loc": {
103103
"start": {
@@ -113,8 +113,8 @@
113113
{
114114
"type": "VAttribute",
115115
"range": [
116-
21,
117-
27
116+
20,
117+
26
118118
],
119119
"loc": {
120120
"start": {
@@ -130,8 +130,8 @@
130130
"key": {
131131
"type": "VIdentifier",
132132
"range": [
133-
21,
134-
23
133+
20,
134+
22
135135
],
136136
"loc": {
137137
"start": {
@@ -148,8 +148,8 @@
148148
"value": {
149149
"type": "VLiteral",
150150
"range": [
151-
24,
152-
27
151+
23,
152+
26
153153
],
154154
"loc": {
155155
"start": {
@@ -167,8 +167,8 @@
167167
{
168168
"type": "VAttribute",
169169
"range": [
170-
28,
171-
34
170+
27,
171+
33
172172
],
173173
"loc": {
174174
"start": {
@@ -184,8 +184,8 @@
184184
"key": {
185185
"type": "VIdentifier",
186186
"range": [
187-
28,
188-
30
187+
27,
188+
29
189189
],
190190
"loc": {
191191
"start": {
@@ -202,8 +202,8 @@
202202
"value": {
203203
"type": "VLiteral",
204204
"range": [
205-
31,
206-
34
205+
30,
206+
33
207207
],
208208
"loc": {
209209
"start": {
@@ -224,8 +224,8 @@
224224
"endTag": {
225225
"type": "VEndTag",
226226
"range": [
227-
35,
228-
41
227+
34,
228+
40
229229
],
230230
"loc": {
231231
"start": {
@@ -243,8 +243,8 @@
243243
{
244244
"type": "VText",
245245
"range": [
246-
41,
247-
43
246+
40,
247+
41
248248
],
249249
"loc": {
250250
"start": {
@@ -256,14 +256,14 @@
256256
"column": 0
257257
}
258258
},
259-
"value": "\r"
259+
"value": "\n"
260260
}
261261
],
262262
"endTag": {
263263
"type": "VEndTag",
264264
"range": [
265-
43,
266-
54
265+
41,
266+
52
267267
],
268268
"loc": {
269269
"start": {
@@ -318,7 +318,7 @@
318318
"type": "HTMLWhitespace",
319319
"range": [
320320
10,
321-
16
321+
15
322322
],
323323
"loc": {
324324
"start": {
@@ -330,13 +330,13 @@
330330
"column": 4
331331
}
332332
},
333-
"value": "\r "
333+
"value": "\n "
334334
},
335335
{
336336
"type": "HTMLTagOpen",
337337
"range": [
338-
16,
339-
20
338+
15,
339+
19
340340
],
341341
"loc": {
342342
"start": {
@@ -353,8 +353,8 @@
353353
{
354354
"type": "HTMLIdentifier",
355355
"range": [
356-
21,
357-
23
356+
20,
357+
22
358358
],
359359
"loc": {
360360
"start": {
@@ -371,8 +371,8 @@
371371
{
372372
"type": "HTMLAssociation",
373373
"range": [
374-
23,
375-
24
374+
22,
375+
23
376376
],
377377
"loc": {
378378
"start": {
@@ -389,8 +389,8 @@
389389
{
390390
"type": "HTMLLiteral",
391391
"range": [
392-
24,
393-
27
392+
23,
393+
26
394394
],
395395
"loc": {
396396
"start": {
@@ -407,8 +407,8 @@
407407
{
408408
"type": "HTMLIdentifier",
409409
"range": [
410-
28,
411-
30
410+
27,
411+
29
412412
],
413413
"loc": {
414414
"start": {
@@ -425,8 +425,8 @@
425425
{
426426
"type": "HTMLAssociation",
427427
"range": [
428-
30,
429-
31
428+
29,
429+
30
430430
],
431431
"loc": {
432432
"start": {
@@ -443,8 +443,8 @@
443443
{
444444
"type": "HTMLLiteral",
445445
"range": [
446-
31,
447-
34
446+
30,
447+
33
448448
],
449449
"loc": {
450450
"start": {
@@ -461,8 +461,8 @@
461461
{
462462
"type": "HTMLTagClose",
463463
"range": [
464-
34,
465-
35
464+
33,
465+
34
466466
],
467467
"loc": {
468468
"start": {
@@ -479,8 +479,8 @@
479479
{
480480
"type": "HTMLEndTagOpen",
481481
"range": [
482-
35,
483-
40
482+
34,
483+
39
484484
],
485485
"loc": {
486486
"start": {
@@ -497,8 +497,8 @@
497497
{
498498
"type": "HTMLTagClose",
499499
"range": [
500-
40,
501-
41
500+
39,
501+
40
502502
],
503503
"loc": {
504504
"start": {
@@ -515,8 +515,8 @@
515515
{
516516
"type": "HTMLWhitespace",
517517
"range": [
518-
41,
519-
43
518+
40,
519+
41
520520
],
521521
"loc": {
522522
"start": {
@@ -528,13 +528,13 @@
528528
"column": 0
529529
}
530530
},
531-
"value": "\r"
531+
"value": "\n"
532532
},
533533
{
534534
"type": "HTMLEndTagOpen",
535535
"range": [
536-
43,
537-
53
536+
41,
537+
51
538538
],
539539
"loc": {
540540
"start": {
@@ -551,8 +551,8 @@
551551
{
552552
"type": "HTMLTagClose",
553553
"range": [
554-
53,
555-
54
554+
51,
555+
52
556556
],
557557
"loc": {
558558
"start": {
@@ -569,8 +569,8 @@
569569
{
570570
"type": "HTMLWhitespace",
571571
"range": [
572-
54,
573-
56
572+
52,
573+
53
574574
],
575575
"loc": {
576576
"start": {
@@ -582,14 +582,14 @@
582582
"column": 0
583583
}
584584
},
585-
"value": "\r"
585+
"value": "\n"
586586
}
587587
],
588588
"comments": [],
589589
"errors": [
590590
{
591591
"message": "duplicate-attribute",
592-
"index": 28,
592+
"index": 27,
593593
"lineNumber": 2,
594594
"column": 16
595595
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
"<template",
33
">",
4-
"\r\n ",
4+
"\n ",
55
"<div",
66
"id",
77
"=",
@@ -12,8 +12,8 @@
1212
">",
1313
"</div",
1414
">",
15-
"\r\n",
15+
"\n",
1616
"</template",
1717
">",
18-
"\r\n"
18+
"\n"
1919
]

test/fixtures/ast/error-duplicate-attribute/tree.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"type": "VElement",
4-
"text": "<template>\r\n <div id=\"a\" id=\"b\"></div>\r\n</template>",
4+
"text": "<template>\n <div id=\"a\" id=\"b\"></div>\n</template>",
55
"children": [
66
{
77
"type": "VStartTag",
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"type": "VText",
13-
"text": "\r\n ",
13+
"text": "\n ",
1414
"children": []
1515
},
1616
{
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"type": "VText",
67-
"text": "\r\n",
67+
"text": "\n",
6868
"children": []
6969
},
7070
{

0 commit comments

Comments
 (0)