You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/spec/linkify/core/parser-test.js
+38-15Lines changed: 38 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ EMAIL = MULTI_TOKENS.EMAIL;
15
15
[2] - The values of the tokens the text should result in
16
16
*/
17
17
vartests=[
18
-
// BEGIN: Original linkify tests
19
18
[
20
19
'google.com',
21
20
[URL],
@@ -33,12 +32,12 @@ var tests = [
33
32
['there are two tests, ','brennan.com',' and ','nick.ca',' -- do they work?']
34
33
],[
35
34
'there are two tests!brennan.com. and nick.ca? -- do they work?',
36
-
[TEXT,URL,TEXT],
37
-
['there are two tests!brennan.com. and ','nick.ca','? -- do they work?']
35
+
[TEXT,URL,TEXT,URL,TEXT],
36
+
['there are two tests!','brennan.com','. and ','nick.ca','? -- do they work?']
38
37
],[
39
38
'This [i.imgur.com/ckSj2Ba.jpg)] should also work',
40
39
[TEXT,URL,TEXT],
41
-
['This [','i.imgur.com/ckSj2Ba.jpg',')] should also work']
40
+
['This [','i.imgur.com/ckSj2Ba.jpg)]',' should also work']
42
41
],[
43
42
'A link is http://nick.is.awesome/?q=nick+amazing&nick=yo%29%30hellp another is http://nick.con/?q=look',
44
43
[TEXT,URL,TEXT],
@@ -63,13 +62,10 @@ var tests = [
63
62
'This port is too short someport.com: this port is too long http://googgle.com:789023/myQuery this port is just right https://github.com:8080/SoapBox/jQuery-linkify/',
64
63
[TEXT,URL,TEXT,URL,TEXT,URL],
65
64
['This port is too short ','someport.com',': this port is too long ','http://googgle.com:789023/myQuery',' this port is just right ','https://github.com:8080/SoapBox/jQuery-linkify/']
66
-
],
67
-
// END: Original linkifiy tests
68
-
// BEGIN: New linkify tests
69
-
[
70
-
'The best URL http://google.com/?love=true and t.co',
65
+
],[
66
+
'The best URL http://google.com/?love=true, and t.co',
71
67
[TEXT,URL,TEXT,URL],
72
-
['The best URL ','http://google.com/?love=true',' and ','t.co']
68
+
['The best URL ','http://google.com/?love=true',', and ','t.co']
0 commit comments