Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 706 lines (531 sloc) 47.305 kb
4cb08c8 Add readme and sample files
Matt Sanford authored
1 tests:
2 usernames:
3 - description: "Autolink trailing username"
4 text: "text @username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
5 expected: "text @<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
6
b23c6aa Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
7 - description: "Autolink username at the beginning"
8 text: "@username text"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
9 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a> text"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
10
11 - description: "DO NOT Autolink username preceded by a letter"
b23c6aa Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
12 text: "meet@the beach"
13 expected: "meet@the beach"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
14
e32214a Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
15 - description: "Autolink username preceded by puctuation"
16 text: "great.@username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
17 expected: "great.@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
18
19 - description: "Autolink username followed by puctuation"
20 text: "@username&^$%^"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
21 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>&^$%^"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
22
23 - description: "Autolink username followed by Japanese"
24 text: "@usernameの"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
25 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>の"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
26
27 - description: "Autolink username preceded by Japanese"
28 text: "あ@username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
29 expected: "あ@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
30
31 - description: "Autolink username surrounded by Japanese"
e194a08 Fix bug in conformance test data: autolinking surrounded by Japanese
Matt Sanford authored
32 text: "あ@usernameの"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
33 expected: "あ@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>の"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
34
8f61e55 Fix typo in description for autolink test case
Mark Dodwell authored
35 - description: "Autolink username in compressed RT"
63f28c8 Add a conformance tests for autolinking username in old-style RTs when s...
Matt Sanford authored
36 text: "RT@username: long Tweet is loooong"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
37 expected: "RT@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>: long Tweet is loooong"
63f28c8 Add a conformance tests for autolinking username in old-style RTs when s...
Matt Sanford authored
38
84357f0 Add conformance tests for @user followed by accents (prevent spamming sh...
Matt Sanford authored
39 - description: "DO NOT Autolink username followed by accented latin characters"
40 text: "@aliceìnheiro something something"
41 expected: "@aliceìnheiro something something"
42
43 - description: "DO NOT Autolink username @_ in @_@"
44 text: "oh, snap! @_@"
45 expected: "oh, snap! @_@"
46
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
47 - description: "Autolink username with full-width at sign (U+FF20)"
48 text: "@username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
49 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
50
51 - description: "DO NOT Autolink username over 20 characters"
52 text: "@username9012345678901"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
53 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username901234567890\">username901234567890</a>1"
73eff47 @bcherry added test for two usernames
bcherry authored
54
55 - description: "Autolink two usernames"
56 text: "@foo @bar"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
57 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/foo\">foo</a> @<a class=\"tweet-url username\" href=\"https://twitter.com/bar\">bar</a>"
8934cee @bcherry another edge case test
bcherry authored
58
687d335 @bcherry autolink usernames followed by :
bcherry authored
59 - description: "Autolink usernames followed by :"
60 text: "@foo: @bar"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
61 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/foo\">foo</a>: @<a class=\"tweet-url username\" href=\"https://twitter.com/bar\">bar</a>"
687d335 @bcherry autolink usernames followed by :
bcherry authored
62
8934cee @bcherry another edge case test
bcherry authored
63 - description: "Autolink usernames that are followed by international characters"
5b465dd @bcherry fix the yml
bcherry authored
64 text: "@foo îs in the house"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
65 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/foo\">foo</a> îs in the house"
3aca14d Update conformance for validation, extraction and autolinking of Russian...
Matt Sanford authored
66
4cb08c8 Add readme and sample files
Matt Sanford authored
67 lists:
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
68 - description: "Autolink list preceded by a space"
4cb08c8 Add readme and sample files
Matt Sanford authored
69 text: "text @username/list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
70 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
71
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
72 - description: "DO NOT Autolink list when space follows slash"
73 text: "text @username/ list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
74 expected: "text @<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>/ list"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
75
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
76 - description: "DO NOT Autolink list with empty username"
77 text: "text @/list"
78 expected: "text @/list"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
79
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
80 - description: "Autolink list at the beginning"
81 text: "@username/list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
82 expected: "@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
83
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
84 - description: "DO NOT Autolink list preceded by letter"
85 text: "meet@the/beach"
86 expected: "meet@the/beach"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
87
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
88 - description: "Autolink list preceded by puctuation"
89 text: "great.@username/list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
90 expected: "great.@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
91
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
92 - description: "Autolink list followed by puctuation"
93 text: "@username/list&^$%^"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
94 expected: "@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>&^$%^"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
95
048e0a5 Correct the list linking tests to corrently reflect the legnth restricti...
Matt Sanford authored
96 - description: "Autolink list name over 25 characters (truncated to 25)"
97 text: "@username/list567890123456789012345A"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
98 expected: "@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list567890123456789012345\">username/list567890123456789012345</a>A"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
99
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
100 - description: "Autolink list that contains an _"
101 text: "text @username/list_name"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
102 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list_name\">username/list_name</a>"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
103
104 - description: "Autolink list that contains a -"
105 text: "text @username/list-name"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
106 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list-name\">username/list-name</a>"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
107
108 - description: "Autolink list that contains a number"
109 text: "text @username/list123"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
110 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list123\">username/list123</a>"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
111
112 - description: "DO NOT Autolink list starting with a number"
113 text: "@username/1list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
114 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>/1list"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
115
4cb08c8 Add readme and sample files
Matt Sanford authored
116 hashtags:
117 - description: "Autolink trailing hashtag"
118 text: "text #hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
119 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
120
121 - description: "Autolink alphanumeric hashtag (letter-number-letter)"
122 text: "text #hash0tag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
123 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hash0tag\" title=\"#hash0tag\" class=\"tweet-url hashtag\">#hash0tag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
124
125 - description: "Autolink alphanumeric hashtag (number-letter)"
126 text: "text #1tag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
127 expected: "text <a href=\"https://twitter.com/#!/search?q=%231tag\" title=\"#1tag\" class=\"tweet-url hashtag\">#1tag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
128
129 - description: "Autolink hashtag with underscore"
130 text: "text #hash_tag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
131 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hash_tag\" title=\"#hash_tag\" class=\"tweet-url hashtag\">#hash_tag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
132
133 - description: "DO NOT Autolink all-numeric hashtags"
134 text: "text #1234"
135 expected: "text #1234"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
136
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
137 - description: "DO NOT Autolink hashtag preceded by a letter"
138 text: "text#hashtag"
139 expected: "text#hashtag"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
140
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
141 - description: "Autolink multiple hashtags"
142 text: "text #hashtag1 #hashtag2"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
143 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag1\" title=\"#hashtag1\" class=\"tweet-url hashtag\">#hashtag1</a> <a href=\"https://twitter.com/#!/search?q=%23hashtag2\" title=\"#hashtag2\" class=\"tweet-url hashtag\">#hashtag2</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
144
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
145 - description: "Autolink hashtag preceded by a period"
146 text: "text.#hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
147 expected: "text.<a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
148
149 - description: "DO NOT Autolink hashtag preceded by &"
150 text: "&#nbsp;"
151 expected: "&#nbsp;"
152
153 - description: "Autolink hashtag followed by ! (! not included)"
154 text: "text #hashtag!"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
155 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>!"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
156
f7dc535 @phopkins Adds test for '#dodge/#answer'
phopkins authored
157 - description: "Autolink two hashtags separated by a slash"
7d28394 @phopkins Adds additional slash tests
phopkins authored
158 text: "text #dodge/#answer"
159 expected: "text <a href=\"https://twitter.com/#!/search?q=%23dodge\" title=\"#dodge\" class=\"tweet-url hashtag\">#dodge</a>/<a href=\"https://twitter.com/#!/search?q=%23answer\" title=\"#answer\" class=\"tweet-url hashtag\">#answer</a>"
160
161 - description: "Autolink hashtag before a slash"
162 text: "text #dodge/answer"
163 expected: "text <a href=\"https://twitter.com/#!/search?q=%23dodge\" title=\"#dodge\" class=\"tweet-url hashtag\">#dodge</a>/answer"
164
165 - description: "Autolink hashtag after a slash"
166 text: "text dodge/#answer"
167 expected: "text dodge/<a href=\"https://twitter.com/#!/search?q=%23answer\" title=\"#answer\" class=\"tweet-url hashtag\">#answer</a>"
f7dc535 @phopkins Adds test for '#dodge/#answer'
phopkins authored
168
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
169 - description: "Autolink hashtag followed by Japanese"
170 text: "text #hashtagの"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
171 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtagの\" title=\"#hashtagの\" class=\"tweet-url hashtag\">#hashtagの</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
172
173 - description: "Autolink hashtag preceded by full-width space (U+3000)"
174 text: "text #hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
175 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
176
177 - description: "Autolink hashtag followed by full-width space (U+3000)"
178 text: "#hashtag text"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
179 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a> text"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
180
181 - description: "Autolink hashtag with full-width hash (U+FF03)"
182 text: "#hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
183 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
184
a828de4 Allow accented characters in hashtags
J.P. Cummins authored
185 - description: "Autolink hashtag with accented character at the start"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
186 text: "#éhashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
187 expected: "<a href=\"https://twitter.com/#!/search?q=%23éhashtag\" title=\"#éhashtag\" class=\"tweet-url hashtag\">#éhashtag</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
188
189 - description: "Autolink hashtag with accented character at the end"
190 text: "#hashtagé"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
191 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashtagé\" title=\"#hashtagé\" class=\"tweet-url hashtag\">#hashtagé</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
192
193 - description: "Autolink hashtag with accented character in the middle"
194 text: "#hashétag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
195 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashétag\" title=\"#hashétag\" class=\"tweet-url hashtag\">#hashétag</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
196
3aca14d Update conformance for validation, extraction and autolinking of Russian...
Matt Sanford authored
197 - description: "Autolink hashtags in Korean"
198 text: "What is #트위터 anyway?"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
199 expected: "What is <a href=\"https://twitter.com/#!/search?q=%23트위터\" title=\"#트위터\" class=\"tweet-url hashtag\">#트위터</a> anyway?"
3aca14d Update conformance for validation, extraction and autolinking of Russian...
Matt Sanford authored
200
201 - description: "Autolink hashtags in Russian"
202 text: "What is #ашок anyway?"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
203 expected: "What is <a href=\"https://twitter.com/#!/search?q=%23ашок\" title=\"#ашок\" class=\"tweet-url hashtag\">#ашок</a> anyway?"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
204
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
205 - description: "Autolink a katakana hashtag preceded by a space and followed by a space"
206 text: "カタカナ #カタカナ カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
207 expected: "カタカナ <a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
208
209 - description: "Autolink a katakana hashtag preceded by a space and followed by a bracket"
210 text: "カタカナ #カタカナ」カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
211 expected: "カタカナ <a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
212
213 - description: "Autolink a katakana hashtag preceded by a space and followed by a edge"
214 text: "カタカナ #カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
215 expected: "カタカナ <a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
216
217 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a space"
218 text: "カタカナ「#カタカナ カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
219 expected: "カタカナ「<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
220
221 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a bracket"
222 text: "カタカナ「#カタカナ」カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
223 expected: "カタカナ「<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
224
225 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a edge"
226 text: "カタカナ「#カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
227 expected: "カタカナ「<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
228
229 - description: "Autolink a katakana hashtag preceded by a edge and followed by a space"
230 text: "#カタカナ カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
231 expected: "<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
232
233 - description: "Autolink a katakana hashtag preceded by a edge and followed by a bracket"
234 text: "#カタカナ」カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
235 expected: "<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
236
237 - description: "Autolink a katakana hashtag preceded by a edge and followed by a edge"
238 text: "#カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
239 expected: "<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
240
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
241 - description: "Autolink a katakana hashtag with a voiced sounds mark followed by a space"
242 text: "#ハッシュタグ テスト"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
243 expected: "<a href=\"https://twitter.com/#!/search?q=%23ハッシュタグ\" title=\"#ハッシュタグ\" class=\"tweet-url hashtag\">#ハッシュタグ</a> テスト"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
244
245 - description: "Autolink a katakana hashtag with a voiced sounds mark followed by numbers"
246 text: "#ハッシュタグ123"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
247 expected: "<a href=\"https://twitter.com/#!/search?q=%23ハッシュタグ123\" title=\"#ハッシュタグ123\" class=\"tweet-url hashtag\">#ハッシュタグ123</a>"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
248
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideograp...
keitaf authored
249 - description: "Autolink a katakana hashtag with another voiced sounds mark"
250 text: "#パピプペポ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
251 expected: "<a href=\"https://twitter.com/#!/search?q=%23パピプペポ\" title=\"#パピプペポ\" class=\"tweet-url hashtag\">#パピプペポ</a>"
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideograp...
keitaf authored
252
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
253 - description: "Autolink a kanji hashtag preceded by a space and followed by a space"
254 text: "漢字 #漢字 漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
255 expected: "漢字 <a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
256
257 - description: "Autolink a kanji hashtag preceded by a space and followed by a bracket"
258 text: "漢字 #漢字」漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
259 expected: "漢字 <a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
260
261 - description: "Autolink a kanji hashtag preceded by a space and followed by a edge"
262 text: "漢字 #漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
263 expected: "漢字 <a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
264
265 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a space"
266 text: "漢字「#漢字 漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
267 expected: "漢字「<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
268
269 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a bracket"
270 text: "漢字「#漢字」漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
271 expected: "漢字「<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
272
273 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a edge"
274 text: "漢字「#漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
275 expected: "漢字「<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
276
277 - description: "Autolink a kanji hashtag preceded by a edge and followed by a space"
278 text: "#漢字 漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
279 expected: "<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
280
281 - description: "Autolink a kanji hashtag preceded by a edge and followed by a bracket"
282 text: "#漢字」漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
283 expected: "<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
284
285 - description: "Autolink a kanji hashtag preceded by a edge and followed by a edge"
286 text: "#漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
287 expected: "<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
288
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
289 - description: "Autolink a kanji hashtag preceded by an ideographic comma, followed by an ideographic period"
290 text: "これは、#大丈夫。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
291 expected: "これは、<a href=\"https://twitter.com/#!/search?q=%23大丈夫\" title=\"#大丈夫\" class=\"tweet-url hashtag\">#大丈夫</a>。"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
292
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
293 - description: "Autolink a hiragana hashtag preceded by a space and followed by a space"
294 text: "ひらがな #ひらがな ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
295 expected: "ひらがな <a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
296
297 - description: "Autolink a hiragana hashtag preceded by a space and followed by a bracket"
298 text: "ひらがな #ひらがな」ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
299 expected: "ひらがな <a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
300
301 - description: "Autolink a hiragana hashtag preceded by a space and followed by a edge"
302 text: "ひらがな #ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
303 expected: "ひらがな <a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
304
305 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a space"
306 text: "ひらがな「#ひらがな ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
307 expected: "ひらがな「<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
308
309 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a bracket"
310 text: "ひらがな「#ひらがな」ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
311 expected: "ひらがな「<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
312
313 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a edge"
314 text: "ひらがな「#ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
315 expected: "ひらがな「<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
316
317 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a space"
318 text: "#ひらがな ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
319 expected: "<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
320
321 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a bracket"
322 text: "#ひらがな」ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
323 expected: "<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
324
325 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a edge"
326 text: "#ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
327 expected: "<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
328
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
329 - description: "Autolink a Kanji/Katakana mix hashtag"
330 text: "日本語ハッシュタグ #日本語ハッシュタグ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
331 expected: "日本語ハッシュタグ <a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
332
333 - description: "DO NOT autolink a hashtag without a preceding space"
334 text: "日本語ハッシュタグ#日本語ハッシュタグ"
335 expected: "日本語ハッシュタグ#日本語ハッシュタグ"
336
337 - description: "DO NOT include a punctuation in a hashtag"
338 text: "#日本語ハッシュタグ。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
339 expected: "<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>。"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
340
341 - description: "Autolink a hashtag after a punctuation"
342 text: "日本語ハッシュタグ。#日本語ハッシュタグ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
343 expected: "日本語ハッシュタグ。<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
344
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
345 - description: "Autolink a hashtag with chouon"
346 text: "長音ハッシュタグ。#サッカー"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
347 expected: "長音ハッシュタグ。<a href=\"https://twitter.com/#!/search?q=%23サッカー\" title=\"#サッカー\" class=\"tweet-url hashtag\">#サッカー</a>"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
348
349 - description: "Autolink a hashtag with half-width chouon"
350 text: "長音ハッシュタグ。#サッカー"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
351 expected: "長音ハッシュタグ。<a href=\"https://twitter.com/#!/search?q=%23サッカー\" title=\"#サッカー\" class=\"tweet-url hashtag\">#サッカー</a>"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
352
353 - description: "Autolink a hashtag with half-width # after full-width !"
354 text: "できましたよー!#日本語ハッシュタグ。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
355 expected: "できましたよー!<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>。"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
356
357 - description: "Autolink a hashtag with full-width # after full-width !"
358 text: "できましたよー!#日本語ハッシュタグ。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
359 expected: "できましたよー!<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>。"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
360
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideograp...
keitaf authored
361 - description: "Autolink a hashtag containing ideographic iteration mark"
362 text: "#云々"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
363 expected: "<a href=\"https://twitter.com/#!/search?q=%23云々\" title=\"#云々\" class=\"tweet-url hashtag\">#云々</a>"
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideograp...
keitaf authored
364
fd5d855 @mzsanford Japanese edge cases, meet your match.
mzsanford authored
365 - description: "Autolink multiple hashtags in multiple languages"
366 text: "Hashtags in #中文, #日本語, #한국말, and #русский! Try it out!"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
367 expected: "Hashtags in <a href=\"https://twitter.com/#!/search?q=%23中文\" title=\"#中文\" class=\"tweet-url hashtag\">#中文</a>, <a href=\"https://twitter.com/#!/search?q=%23日本語\" title=\"#日本語\" class=\"tweet-url hashtag\">#日本語</a>, <a href=\"https://twitter.com/#!/search?q=%23한국말\" title=\"#한국말\" class=\"tweet-url hashtag\">#한국말</a>, and <a href=\"https://twitter.com/#!/search?q=%23русский\" title=\"#русский\" class=\"tweet-url hashtag\">#русский</a>! Try it out!"
fd5d855 @mzsanford Japanese edge cases, meet your match.
mzsanford authored
368
da94908 @mzsanford Add tests for U+015F in hashtags: https://github.com/twitter/twitter-tex...
mzsanford authored
369 - description: "Autolink should allow for ş (U+015F) in a hashtag"
370 text: "Here’s a test tweet for you: #Ateş #qrşt #ştu #ş"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
371 expected: "Here’s a test tweet for you: <a href=\"https://twitter.com/#!/search?q=%23Ateş\" title=\"#Ateş\" class=\"tweet-url hashtag\">#Ateş</a> <a href=\"https://twitter.com/#!/search?q=%23qrşt\" title=\"#qrşt\" class=\"tweet-url hashtag\">#qrşt</a> <a href=\"https://twitter.com/#!/search?q=%23ştu\" title=\"#ştu\" class=\"tweet-url hashtag\">#ştu</a> <a href=\"https://twitter.com/#!/search?q=%23ş\" title=\"\" class=\"tweet-url hashtag\">#ş</a>"
da94908 @mzsanford Add tests for U+015F in hashtags: https://github.com/twitter/twitter-tex...
mzsanford authored
372
64d9818 @keitaf Add test cases for hashtags with Latin extended characters.
keitaf authored
373 - description: "Autolink a hashtag with Latin extended character"
374 text: "#mûǁae"
375 expected: "<a href=\"https://twitter.com/#!/search?q=%23mûǁae\" title=\"#mûǁae\" class=\"tweet-url hashtag\">#mûǁae</a>"
376
def2757 @keitaf Add test cases for Arabic and Thai hashtags.
keitaf authored
377 - description: "Autolink Arabic hashtag"
378 text: "Arabic hashtag: #فارسی #لس_آنجلس"
379 expected: "Arabic hashtag: <a href=\"https://twitter.com/#!/search?q=%23فارسی\" title=\"#فارسی\" class=\"tweet-url hashtag\">#فارسی</a> <a href=\"https://twitter.com/#!/search?q=%23لس_آنجلس\" title=\"#لس_آنجلس\" class=\"tweet-url hashtag\">#لس_آنجلس</a>"
380
381 - description: "Autolink Thai hashtag"
382 text: "Thai hashtag: #รายละเอียด"
383 expected: "Thai hashtag: <a href=\"https://twitter.com/#!/search?q=%23รายละเอียด\" title=\"#รายละเอียด\" class=\"tweet-url hashtag\">#รายละเอียด</a>"
384
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
385 urls:
62c6f38 Allow pipe character in URLs
Mark Christian authored
386 - description: "Autolink URL with pipe character"
387 text: "text http://example.com/pipe|character?yes|pipe|character"
f9a6d72 @hoverbird Fix typo
hoverbird authored
388 expected: "text <a href=\"http://example.com/pipe|character?yes|pipe|character\">http://example.com/pipe|character?yes|pipe|character</a>"
62c6f38 Allow pipe character in URLs
Mark Christian authored
389
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
390 - description: "Autolink trailing url"
391 text: "text http://example.com"
392 expected: "text <a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
393
394 - description: "Autolink url in mid-text"
395 text: "text http://example.com more text"
396 expected: "text <a href=\"http://example.com\">http://example.com</a> more text"
397
398 - description: "Autolink url in Japanese text"
399 text: "いまなにしてるhttp://example.comいまなにしてる"
400 expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
401
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
402 - description: "Autolink url surrounded by parentheses does not capture them"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
403 text: "text (http://example.com)"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
404 expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
405
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
406 - description: "Autolink url with path surrounded by parentheses does not capture them"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
407 text: "text (http://example.com/test)"
408 expected: "text (<a href=\"http://example.com/test\">http://example.com/test</a>)"
409
410 - description: "Autolink url with embedded parentheses"
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
411 text: "text http://msdn.com/S(deadbeef)/page.htm"
ee1441d Mistyped test data
Matt Sanford authored
412 expected: "text <a href=\"http://msdn.com/S(deadbeef)/page.htm\">http://msdn.com/S(deadbeef)/page.htm</a>"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
413
0afbdd6 @syo68k Added test case to autolink.yml (see also https://github.com/twitter/twi...
syo68k authored
414 - description: "Extract valid URL: http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx"
415 text: "text http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx"
90e5503 @keitaf Fix a broken test.
keitaf authored
416 expected: "text <a href=\"http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx\">http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx</a>"
0afbdd6 @syo68k Added test case to autolink.yml (see also https://github.com/twitter/twi...
syo68k authored
417
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored
418 - description: "Autolink url with balanced parens hiding XSS"
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
419 text: 'text http://foo.com/("onclick="alert(1)")'
420 expected: 'text <a href="http://foo.com/">http://foo.com/</a>("onclick="alert(1)")'
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored
421
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
422 - description: "Autolink url should NOT capture unbalanced parens"
423 text: "Parenthetically bad http://example.com/i_has_a_) thing"
424 expected: "Parenthetically bad <a href=\"http://example.com/i_has_a_\">http://example.com/i_has_a_</a>) thing"
425
85bb047 @hoverbird Remove conformance spec prohibiting URLs preceded by a colon
hoverbird authored
426 - description: "Autolink url containing unicode characters"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
427 text: "I enjoy Macintosh Brand computers: http://✪df.ws/ejp"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
428 expected: "I enjoy Macintosh Brand computers: <a href=\"http://✪df.ws/ejp\">http://✪df.ws/ejp</a>"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
429
056022c Add a .co.jp autolink test
Matt Sanford authored
430 - description: "Autolink url with .co. under TLD"
431 text: "test http://www.example.co.jp"
432 expected: "test <a href=\"http://www.example.co.jp\">http://www.example.co.jp</a>"
433
f6dafb5 Add more edge case testing for pinctuation in domains
Matt Sanford authored
434 - description: "DO NOT Autolink url containing ! character in the domain"
435 text: "badly formatted http://foo!bar.com"
436 expected: "badly formatted http://foo!bar.com"
437
438 - description: "DO NOT Autolink url containing _ character in the domain"
439 text: "badly formatted http://foo_bar.com"
440 expected: "badly formatted http://foo_bar.com"
441
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
442 - description: "Autolink url preceded by :"
443 text: "text:http://example.com"
444 expected: "text:<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
445
446 - description: "Autolink url followed by ? (without it)"
447 text: "text http://example.com?"
448 expected: "text <a href=\"http://example.com\">http://example.com</a>?"
449
450 - description: "Autolink url followed by ! (without it)"
451 text: "text http://example.com!"
452 expected: "text <a href=\"http://example.com\">http://example.com</a>!"
453
454 - description: "Autolink url followed by , (without it)"
455 text: "text http://example.com,"
456 expected: "text <a href=\"http://example.com\">http://example.com</a>,"
457
75b0baf Add a conformance test for autolinking URLs with paths followed by a com...
Matt Sanford authored
458 - description: "Autolink url with path followed by a comma (wihout the comma)"
459 text: "In http://example.com/test, Douglas explains 42."
460 expected: "In <a href=\"http://example.com/test\">http://example.com/test</a>, Douglas explains 42."
461
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
462 - description: "Autolink url followed by . (without it)"
463 text: "text http://example.com."
464 expected: "text <a href=\"http://example.com\">http://example.com</a>."
465
466 - description: "Autolink url followed by : (without it)"
467 text: "text http://example.com:"
468 expected: "text <a href=\"http://example.com\">http://example.com</a>:"
469
470 - description: "Autolink url followed by ; (without it)"
471 text: "text http://example.com;"
472 expected: "text <a href=\"http://example.com\">http://example.com</a>;"
473
474 - description: "Autolink url followed by ] (without it)"
475 text: "text http://example.com]"
476 expected: "text <a href=\"http://example.com\">http://example.com</a>]"
477
478 - description: "Autolink url followed by ) (without it)"
479 text: "text http://example.com)"
480 expected: "text <a href=\"http://example.com\">http://example.com</a>)"
481
482 - description: "Autolink url followed by } (without it)"
483 text: "text http://example.com}"
484 expected: "text <a href=\"http://example.com\">http://example.com</a>}"
485
486 - description: "Autolink url followed by = (without it)"
487 text: "text http://example.com="
488 expected: "text <a href=\"http://example.com\">http://example.com</a>="
489
490 - description: "Autolink url followed by ' (without it)"
491 text: "text http://example.com'"
492 expected: "text <a href=\"http://example.com\">http://example.com</a>'"
493
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
494 - description: "Autolink url preceded by /"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
495 text: "text /http://example.com"
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
496 expected: "text /<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
497
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
498 - description: "Autolink url preceded by !"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
499 text: "text !http://example.com"
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
500 expected: "text !<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
501
502 - description: "DO NOT Autolink url preceded by ="
503 text: "text =http://example.com"
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
504 expected: "text =<a href=\"http://example.com\">http://example.com</a>"
505
506 - description: "Autolink url surrounded by double quotes"
507 text: "text \"http://example.com\""
508 expected: "text \"<a href=\"http://example.com\">http://example.com</a>\""
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
509
335add9 @bcherry don't allow @ as a preceding character for URLs
bcherry authored
510 - description: "DO NOT Autolink url preceded by @"
511 text: "@http://example.com"
512 expected: "@http://example.com"
513
514 - description: "DO NOT Autolink domain in email address"
515 text: "foo@bar.com"
516 expected: "foo@bar.com"
517
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
518 - description: "Autolink url embedded in link tag"
519 text: "<link rel='true'>http://example.com</link>"
520 expected: "<link rel='true'><a href=\"http://example.com\">http://example.com</a></link>"
521
522 - description: "Autolink multiple urls"
523 text: "http://example.com https://sslexample.com http://sub.example.com"
4c437bc Remove invalid test case
Matt Sanford authored
524 expected: "<a href=\"http://example.com\">http://example.com</a> <a href=\"https://sslexample.com\">https://sslexample.com</a> <a href=\"http://sub.example.com\">http://sub.example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
525
526 - description: "Autolink url with long TLD"
527 text: "http://example.mobi/path"
528 expected: "<a href=\"http://example.mobi/path\">http://example.mobi/path</a>"
529
49f08f5 @bcherry new conformance behavior
bcherry authored
530 - description: "Autolink url containing ending with #value (not as url + hashtag)"
531 text: "http://foo.com/?#foo"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
532 expected: "<a href=\"http://foo.com/?#foo\">http://foo.com/?#foo</a>"
49f08f5 @bcherry new conformance behavior
bcherry authored
533
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
534 - description: "DO NOT Autolink url without protocol (with www)"
49f08f5 @bcherry new conformance behavior
bcherry authored
535 text: "www.example.biz"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
536 expected: "www.example.biz"
8e920e6 Add case sensitivity test for link without protocol
Matt Sanford authored
537
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
538 - description: "DO NOT Autolink url without protocol (with WWW)"
49f08f5 @bcherry new conformance behavior
bcherry authored
539 text: "WWW.EXAMPLE.BIZ"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
540 expected: "WWW.EXAMPLE.BIZ"
49f08f5 @bcherry new conformance behavior
bcherry authored
541
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
542 - description: "DO NOT Autolink URL without protocol and without www (ending in .com)"
49f08f5 @bcherry new conformance behavior
bcherry authored
543 text: "foo.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
544 expected: "foo.com"
49f08f5 @bcherry new conformance behavior
bcherry authored
545
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
546 - description: "DO NOT Autolink URL without protocol and without www (ending in .org)"
49f08f5 @bcherry new conformance behavior
bcherry authored
547 text: "foo.org"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
548 expected: "foo.org"
49f08f5 @bcherry new conformance behavior
bcherry authored
549
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
550 - description: "DO NOT Autolink URL without protocol and without www (ending in .net)"
49f08f5 @bcherry new conformance behavior
bcherry authored
551 text: "foo.net"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
552 expected: "foo.net"
49f08f5 @bcherry new conformance behavior
bcherry authored
553
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
554 - description: "DO NOT Autolink URL without protocol and without www (ending in .gov)"
49f08f5 @bcherry new conformance behavior
bcherry authored
555 text: "foo.gov"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
556 expected: "foo.gov"
49f08f5 @bcherry new conformance behavior
bcherry authored
557
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
558 - description: "DO NOT Autolink URL without protocol and without www (ending in .edu)"
49f08f5 @bcherry new conformance behavior
bcherry authored
559 text: "foo.edu"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
560 expected: "foo.edu"
49f08f5 @bcherry new conformance behavior
bcherry authored
561
562 - description: "Autolink URL without protocol and without www not ending in /.(edu|com|gov|org|net)/"
563 text: "foo.it twitter.co.jp foo.commerce foo.nettastic foo.us foo.co.uk"
564 expected: "foo.it twitter.co.jp foo.commerce foo.nettastic foo.us foo.co.uk"
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
565
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
566 - description: "Multiple URLs with different protocols but not without a protocol"
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
567 text: "http://foo.com AND https://bar.com AND www.foobar.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
568 expected: "<a href=\"http://foo.com\">http://foo.com</a> AND <a href=\"https://bar.com\">https://bar.com</a> AND www.foobar.com"
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
569
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
570 - description: "Autolink raw domain followed by domain only links the first"
0aeb418 Add a test for two valid domains divided by a space
Matt Sanford authored
571 text: "See http://example.com example.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
572 expected: "See <a href=\"http://example.com\">http://example.com</a> example.com"
0aeb418 Add a test for two valid domains divided by a space
Matt Sanford authored
573
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored
574 - description: "Autolink url that includes @-sign and numeric dir under it"
575 text: "http://www.flickr.com/photos/29674651@N00/4382024406"
576 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a>"
577
578 - description: "Autolink url that includes @-sign and non-numeric dir under it"
579 text: "http://www.flickr.com/photos/29674651@N00/foobar"
e119e95 Correct the flickr-ish path info
Matt Sanford authored
580 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/foobar\">http://www.flickr.com/photos/29674651@N00/foobar</a>"
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored
581
de83c53 @phopkins Adds a URL test specifically for fragments
phopkins authored
582 - description: "Autolink url with a hashtag-looking fragment"
583 text: "http://www.example.com/#answer"
584 expected: "<a href=\"http://www.example.com/#answer\">http://www.example.com/#answer</a>"
585
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
586 - description: "Autolink URL with only a domain followed by a period doesn't swallow the period."
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
587 text: "I think it's proper to end sentences with a period http://tell.me.com. Even when they contain a URL."
588 expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me.com\">http://tell.me.com</a>. Even when they contain a URL."
1e2ddb5 @hoverbird Added failing cases for URLs surrounded by parens and URLs followed by a...
hoverbird authored
589
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
590 - description: "Autolink URL with a path followed by a period doesn't swallow the period."
1e2ddb5 @hoverbird Added failing cases for URLs surrounded by parens and URLs followed by a...
hoverbird authored
591 text: "I think it's proper to end sentences with a period http://tell.me/why. Even when they contain a URL."
592 expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me/why\">http://tell.me/why</a>. Even when they contain a URL."
593
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
594 - description: "Autolink URL with a query followed by a period doesn't swallow the period."
595 text: "I think it's proper to end sentences with a period http://tell.me/why?=because.i.want.it. Even when they contain a URL."
596 expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me/why?=because.i.want.it\">http://tell.me/why?=because.i.want.it</a>. Even when they contain a URL."
597
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow single...
hoverbird authored
598 - description: "Autolink URL with a hyphen in the domain name"
599 text: "Czech out sweet deals at http://mrs.domain-dash.biz ok?"
600 expected: "Czech out sweet deals at <a href=\"http://mrs.domain-dash.biz\">http://mrs.domain-dash.biz</a> ok?"
601
64578fb Add punycode test case
Matt Sanford authored
602 - description: "Autolink an IDN (punycode) domain and TLD"
603 text: "See also: http://xn--80abe5aohbnkjb.xn--p1ai/"
604 expected: "See also: <a href=\"http://xn--80abe5aohbnkjb.xn--p1ai/\">http://xn--80abe5aohbnkjb.xn--p1ai/</a>"
605
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored
606 - description: "Autolink URL should NOT autolink www...foo"
607 text: "Is www...foo a valid URL?"
608 expected: "Is www...foo a valid URL?"
609
610 - description: "Autolink URL should NOT autolink www.-foo.com"
611 text: "Is www.-foo.com a valid URL?"
612 expected: "Is www.-foo.com a valid URL?"
613
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
614 - description: "Autolink URL should NOT autolink a domain with a valid dash but no protocol"
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored
615 text: "Is www.foo-bar.com a valid URL?"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
616 expected: "Is www.foo-bar.com a valid URL?"
617
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to v1...
Matt Sanford authored
618 - description: "Autolink URL should autolink a domain with a valid dash and a protocol"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
619 text: "Is http://www.foo-bar.com a valid URL?"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
620 expected: "Is <a href=\"http://www.foo-bar.com\">http://www.foo-bar.com</a> a valid URL?"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
621
7be56b7 Add a conformance test for search URLs (already passes. Toubleshooting a...
Matt Sanford authored
622 - description: "Autolink URL should link search urls (with &lang=, not &lang;)"
bcddd57 @keitaf Update test cases for autolinking hashtags by adding '#!'
keitaf authored
623 text: "Check out http://search.twitter.com/#!/search?q=avro&lang=en"
624 expected: "Check out <a href=\"http://search.twitter.com/#!/search?q=avro&amp;lang=en\">http://search.twitter.com/#!/search?q=avro&amp;lang=en</a>"
7be56b7 Add a conformance test for search URLs (already passes. Toubleshooting a...
Matt Sanford authored
625
48c4088 Add a test case for URLs with very long paths
Matt Sanford authored
626 - description: "Autolink URL should link urls with very long paths"
627 text: "Check out http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
628 expected: "Check out <a href=\"http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\">http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</a>"
c5ef022 Add an addition XSS test
Matt Sanford authored
629
630 - description: "Autolink URL should HTML escape the URL"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
631 text: "example: https://twitter.com/otm_m@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
632 expected: "example: <a href=\"https://twitter.com/otm_m\">https://twitter.com/otm_m</a>@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
c5ef022 Add an addition XSS test
Matt Sanford authored
633
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to v1...
Matt Sanford authored
634 - description: "Autolink URL should autolink a URL with a - or + at the end of the path"
635 text: "Go to http://example.com/a+ or http://example.com/a-"
636 expected: "Go to <a href=\"http://example.com/a+\">http://example.com/a+</a> or <a href=\"http://example.com/a-\">http://example.com/a-</a>"
e810e4e @bcherry japanese edge case
bcherry authored
637
7ff3017 Add more tests around the v1.3.1 conformance fixes
Matt Sanford authored
638 - description: "Autolink URL should autolink a URL with a - or + at the end of the path and query parameters"
639 text: "Go to http://example.com/a+?this=that or http://example.com/a-?this=that"
640 expected: "Go to <a href=\"http://example.com/a+?this=that\">http://example.com/a+?this=that</a> or <a href=\"http://example.com/a-?this=that\">http://example.com/a-?this=that</a>"
641
642 - description: "Autolink URL should autolink URLs with longer paths ending in -"
643 text: "Go to http://example.com/view/slug-url-?foo=bar"
644 expected: "Go to <a href=\"http://example.com/view/slug-url-?foo=bar\">http://example.com/view/slug-url-?foo=bar</a>"
645
aaeb7c2 Add extraction and autolink tests for domains with spaces
Matt Sanford authored
646 - description: "Autolink URL should NOT link URLs with domains beginning in a space"
647 text: "@user Try http:// example.com/path"
648 expected: "@user Try http:// example.com/path"
649
3602846 Add non-breaking space (U+00A0) tests
Matt Sanford authored
650 - description: "Autolink URL should NOT link URLs with domains beginning in a non-breaking space (U+00A0)"
651 text: "@user Try http:// example.com/path"
652 expected: "@user Try http:// example.com/path"
653
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
654 - description: "Autolink URL should link paths containing accented characters"
91506d3 @mzsanford Add test for accented path character in URL: https://github.com/twitter/...
mzsanford authored
655 text: "See: http://example.com/café"
fcff01c @mzsanford Spelling correction in accented URL path test
mzsanford authored
656 expected: "See: <a href=\"http://example.com/café\">http://example.com/café</a>"
91506d3 @mzsanford Add test for accented path character in URL: https://github.com/twitter/...
mzsanford authored
657
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
658 - description: "Autolink URL should not link URL without protocol"
659 text: "See: www.twitter.com or twitter.com/twitter"
660 expected: "See: www.twitter.com or twitter.com/twitter"
661
29d0a1b @keitaf Add a test to autolink t.co URL followed by punctuation.
keitaf authored
662 - description: "Autolink t.co URL followed by punctuation"
663 text: "See: http://t.co/abcde's page"
664 expected: "See: <a href=\"http://t.co/abcde\">http://t.co/abcde</a>'s page"
665
0bed1d7 @keitaf Add test cases for URLs preceded by $.
keitaf authored
666 - description: "DO NOT autolink URL if preceded by $"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
667 text: "$https://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
668 expected: "$https://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
0bed1d7 @keitaf Add test cases for URLs preceded by $.
keitaf authored
669
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
670 all:
6741760 Make the auto link all test more realistic
Matt Sanford authored
671 - description: "Autolink all does not break on URL with @"
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow single...
hoverbird authored
672 text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
673 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a> if you know what's good for you."
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
674
1b2c3be Add autolink test for URL with & but no ?
Matt Sanford authored
675 - description: "Autolink all does not allow & without ?"
676 text: "Check out: http://example.com/test&@chasesechrist"
4a31935 @keitaf Modify a test case with @mention preceded by &.
keitaf authored
677 expected: "Check out: <a href=\"http://example.com/test\">http://example.com/test</a>&@chasesechrist"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored
678
c5ef022 Add an addition XSS test
Matt Sanford authored
679 - description: "Correctly handles URL follower directly by @user"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored
680 text: "See: http://example.com/@user"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
681 expected: "See: <a href=\"http://example.com/\">http://example.com/</a>@<a class=\"tweet-url username\" href=\"https://twitter.com/user\">user</a>"
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored
682
13926c1 @bcherry added some more conformance tests for XSS stuff
bcherry authored
683 - description: "Correctly handles URL with an @user followed by trailing /"
684 text: "See: http://example.com/@user/"
685 expected: "See: <a href=\"http://example.com/@user/\">http://example.com/@user/</a>"
686
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored
687 - description: "Does not allow an XSS after an @"
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
688 text: "See: http://x.xx.com/@\"style=\"color:pink\"onmouseover=alert(1)//"
689 expected: "See: <a href=\"http://x.xx.com/\">http://x.xx.com/</a>@\"style=\"color:pink\"onmouseover=alert(1)//"
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
690
691 - description: "DO NOT autolink URLs if preceded by # or @"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
692 text: "#https://twitter.com @https://twitter.com"
693 expected: "#https://twitter.com @https://twitter.com"
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
694
983fbd0 @phopkins Adds hashtag-in-URL test to 'all' category
phopkins authored
695 - description: "Autolink url with a hashtag-looking fragment"
696 text: "http://www.example.com/#answer"
697 expected: "<a href=\"http://www.example.com/#answer\">http://www.example.com/#answer</a>"
698
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
699 - description: "Autolink hashtag if followed by . and TLD"
700 text: "#twitter.com #twitter.co.jp"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
701 expected: "<a href=\"https://twitter.com/#!/search?q=%23twitter\" title=\"#twitter\" class=\"tweet-url hashtag\">#twitter</a>.com <a href=\"https://twitter.com/#!/search?q=%23twitter\" title=\"#twitter\" class=\"tweet-url hashtag\">#twitter</a>.co.jp"
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
702
703 - description: "Autolink @mention if followed by . and TLD"
704 text: "@twitter.com @twitter.co.jp"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
705 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/twitter\">twitter</a>.com @<a class=\"tweet-url username\" href=\"https://twitter.com/twitter\">twitter</a>.co.jp"
Something went wrong with that request. Please try again.