Skip to content

Commit 3873dec

Browse files
authored
Merge pull request bellard#13 from openwebf/feat/column
fix: the typo of 'test_line_column_num' file
2 parents 2cfcbb9 + c00c266 commit 3873dec

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/test_line_column_num.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function assert(actual, expected, message) {
1212
', expected |' + expected + '|' + (message ? ' (' + message + ')' : ''));
1313
}
1414

15-
/** id not exists -> should located at id */
15+
/** id not exists -> should be located at id */
1616
function test_line_column1() {
1717
try {
1818
eval(`'【';A;`);
@@ -23,7 +23,7 @@ function test_line_column1() {
2323
}
2424

2525
/**
26-
* memeber call should locate at id:
26+
* memeber call should be located at id:
2727
* a.b.c() and c is null -> c will be located
2828
*/
2929
function test_line_column2() {
@@ -39,7 +39,7 @@ a.b.c.d();
3939
}
4040

4141
/**
42-
* memeber call should locate at id:
42+
* memeber call should be located at id:
4343
* a.b.c() and b is null -> c will be located
4444
*/
4545
function test_line_column3() {
@@ -54,7 +54,7 @@ a.f.c.d();
5454
}
5555
}
5656

57-
/** if id not exists -> should located at id */
57+
/** if id not exists -> should be located at id */
5858
function test_line_column4() {
5959
try {
6060
eval(`(function(){'use strict';a;}());`);
@@ -64,7 +64,7 @@ function test_line_column4() {
6464
}
6565
}
6666

67-
/** if id not exists -> should located at id */
67+
/** if id not exists -> should be located at id */
6868
function test_line_column5() {
6969
try {
7070
eval(`'【';1+1;new A();`);
@@ -74,7 +74,7 @@ function test_line_column5() {
7474
}
7575
}
7676

77-
/** new call should located at 'new' */
77+
/** new call should be located at 'new' */
7878
function test_line_column6() {
7979
try {
8080
eval(`'【';1+1;throw new Error();`);
@@ -85,7 +85,7 @@ function test_line_column6() {
8585
}
8686

8787
/**
88-
* normal call should locate at function name:
88+
* normal call should be located at function name:
8989
* a() and a is null or occur error -> a will be located
9090
*/
9191
function test_line_column7() {
@@ -97,7 +97,8 @@ function test_line_column7() {
9797
}
9898
}
9999

100-
/** if comment is first line,
100+
/**
101+
* if comment is first line,
101102
* the line number of one line should be locate at next line
102103
*/
103104
function test_line_column8() {

0 commit comments

Comments
 (0)