Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 674 lines (507 sloc) 45.144 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…
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…
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…
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…
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…
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…
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…
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…
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 whe…
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 whe…
Matt Sanford authored
38
84357f0 Add conformance tests for @user followed by accents (prevent spamming…
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…
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…
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 Russ…
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 restri…
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
157 - description: "Autolink hashtag followed by Japanese"
158 text: "text #hashtagの"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
159 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
160
161 - description: "Autolink hashtag preceded by full-width space (U+3000)"
162 text: "text #hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
163 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
164
165 - description: "Autolink hashtag followed by full-width space (U+3000)"
166 text: "#hashtag text"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
167 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
168
169 - description: "Autolink hashtag with full-width hash (U+FF03)"
170 text: "#hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
171 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
172
a828de4 Allow accented characters in hashtags
J.P. Cummins authored
173 - description: "Autolink hashtag with accented character at the start"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
174 text: "#éhashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
175 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
176
177 - description: "Autolink hashtag with accented character at the end"
178 text: "#hashtagé"
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>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
180
181 - description: "Autolink hashtag with accented character in the middle"
182 text: "#hashétag"
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=%23hashétag\" title=\"#hashétag\" class=\"tweet-url hashtag\">#hashétag</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
184
3aca14d Update conformance for validation, extraction and autolinking of Russ…
Matt Sanford authored
185 - description: "Autolink hashtags in Korean"
186 text: "What is #트위터 anyway?"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
187 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 Russ…
Matt Sanford authored
188
189 - description: "Autolink hashtags in Russian"
190 text: "What is #ашок anyway?"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
191 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
192
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
193 - description: "Autolink a katakana hashtag preceded by a space and followed by a space"
194 text: "カタカナ #カタカナ カタカナ"
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=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
196
197 - description: "Autolink a katakana hashtag preceded by a space and followed by a bracket"
198 text: "カタカナ #カタカナ」カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
199 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
200
201 - description: "Autolink a katakana hashtag preceded by a space and followed by a edge"
202 text: "カタカナ #カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
203 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
204
205 - description: "Autolink a katakana hashtag preceded by a bracket 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 bracket 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 bracket 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 edge 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 edge 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 edge 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
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
229 - description: "Autolink a katakana hashtag with a voiced sounds mark 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> テスト"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
232
233 - description: "Autolink a katakana hashtag with a voiced sounds mark followed by numbers"
234 text: "#ハッシュタグ123"
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ハッシュタグ123\" title=\"#ハッシュタグ123\" class=\"tweet-url hashtag\">#ハッシュタグ123</a>"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
236
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
237 - description: "Autolink a katakana hashtag with another voiced sounds mark"
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>"
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
240
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
241 - description: "Autolink a kanji hashtag preceded by a space and 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> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
244
245 - description: "Autolink a kanji hashtag preceded by a space and followed by a bracket"
246 text: "漢字 #漢字」漢字"
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漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
248
249 - description: "Autolink a kanji hashtag preceded by a space and followed by a edge"
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>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
252
253 - description: "Autolink a kanji hashtag preceded by a bracket 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 bracket 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 bracket 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 edge 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 edge 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 edge 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
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
277 - description: "Autolink a kanji hashtag preceded by an ideographic comma, followed by an ideographic period"
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>。"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
280
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
281 - description: "Autolink a hiragana hashtag preceded by a space and followed by a space"
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 hiragana hashtag preceded by a space and followed by a bracket"
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
289 - description: "Autolink a hiragana hashtag preceded by a space and followed by a edge"
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>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
292
293 - description: "Autolink a hiragana hashtag preceded by a bracket 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 bracket 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 bracket 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 edge 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 edge 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 edge 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
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
317 - description: "Autolink a Kanji/Katakana mix hashtag"
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>"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
320
321 - description: "DO NOT autolink a hashtag without a preceding space"
322 text: "日本語ハッシュタグ#日本語ハッシュタグ"
323 expected: "日本語ハッシュタグ#日本語ハッシュタグ"
324
325 - description: "DO NOT include a punctuation in a hashtag"
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>。"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
328
329 - description: "Autolink a hashtag after a punctuation"
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
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
333 - description: "Autolink a hashtag with chouon"
334 text: "長音ハッシュタグ。#サッカー"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
335 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
336
337 - description: "Autolink a hashtag with half-width chouon"
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>"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
340
341 - description: "Autolink a hashtag with half-width # after full-width !"
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>。"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
344
345 - description: "Autolink a hashtag with full-width # after full-width !"
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
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
349 - description: "Autolink a hashtag containing ideographic iteration mark"
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>"
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
352
fd5d855 @mzsanford Japanese edge cases, meet your match.
mzsanford authored
353 - description: "Autolink multiple hashtags in multiple languages"
354 text: "Hashtags in #中文, #日本語, #한국말, and #русский! Try it out!"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
355 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
356
da94908 @mzsanford Add tests for U+015F in hashtags: https://github.com/twitter/twitter-…
mzsanford authored
357 - description: "Autolink should allow for ş (U+015F) in a hashtag"
358 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
359 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-…
mzsanford authored
360
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
361 urls:
62c6f38 Allow pipe character in URLs
Mark Christian authored
362 - description: "Autolink URL with pipe character"
363 text: "text http://example.com/pipe|character?yes|pipe|character"
f9a6d72 @hoverbird Fix typo
hoverbird authored
364 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
365
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
366 - description: "Autolink trailing url"
367 text: "text http://example.com"
368 expected: "text <a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
369
370 - description: "Autolink url in mid-text"
371 text: "text http://example.com more text"
372 expected: "text <a href=\"http://example.com\">http://example.com</a> more text"
373
374 - description: "Autolink url in Japanese text"
375 text: "いまなにしてるhttp://example.comいまなにしてる"
376 expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
377
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
378 - description: "Autolink url surrounded by parentheses does not capture them"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
379 text: "text (http://example.com)"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
380 expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
381
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
382 - description: "Autolink url with path surrounded by parentheses does not capture them"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
383 text: "text (http://example.com/test)"
384 expected: "text (<a href=\"http://example.com/test\">http://example.com/test</a>)"
385
386 - description: "Autolink url with embedded parentheses"
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
387 text: "text http://msdn.com/S(deadbeef)/page.htm"
ee1441d Mistyped test data
Matt Sanford authored
388 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 embded…
hoverbird authored
389
0afbdd6 @syo68k Added test case to autolink.yml (see also https://github.com/twitter/…
syo68k authored
390 - description: "Extract valid URL: http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx"
391 text: "text http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx"
90e5503 @keitaf Fix a broken test.
keitaf authored
392 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/…
syo68k authored
393
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored
394 - description: "Autolink url with balanced parens hiding XSS"
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
395 text: 'text http://foo.com/("onclick="alert(1)")'
396 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
397
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
398 - description: "Autolink url should NOT capture unbalanced parens"
399 text: "Parenthetically bad http://example.com/i_has_a_) thing"
400 expected: "Parenthetically bad <a href=\"http://example.com/i_has_a_\">http://example.com/i_has_a_</a>) thing"
401
85bb047 @hoverbird Remove conformance spec prohibiting URLs preceded by a colon
hoverbird authored
402 - description: "Autolink url containing unicode characters"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
403 text: "I enjoy Macintosh Brand computers: http://✪df.ws/ejp"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
404 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
405
056022c Add a .co.jp autolink test
Matt Sanford authored
406 - description: "Autolink url with .co. under TLD"
407 text: "test http://www.example.co.jp"
408 expected: "test <a href=\"http://www.example.co.jp\">http://www.example.co.jp</a>"
409
f6dafb5 Add more edge case testing for pinctuation in domains
Matt Sanford authored
410 - description: "DO NOT Autolink url containing ! character in the domain"
411 text: "badly formatted http://foo!bar.com"
412 expected: "badly formatted http://foo!bar.com"
413
414 - description: "DO NOT Autolink url containing _ character in the domain"
415 text: "badly formatted http://foo_bar.com"
416 expected: "badly formatted http://foo_bar.com"
417
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
418 - description: "Autolink url preceded by :"
419 text: "text:http://example.com"
420 expected: "text:<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
421
422 - description: "Autolink url followed by ? (without it)"
423 text: "text http://example.com?"
424 expected: "text <a href=\"http://example.com\">http://example.com</a>?"
425
426 - description: "Autolink url followed by ! (without it)"
427 text: "text http://example.com!"
428 expected: "text <a href=\"http://example.com\">http://example.com</a>!"
429
430 - description: "Autolink url followed by , (without it)"
431 text: "text http://example.com,"
432 expected: "text <a href=\"http://example.com\">http://example.com</a>,"
433
75b0baf Add a conformance test for autolinking URLs with paths followed by a …
Matt Sanford authored
434 - description: "Autolink url with path followed by a comma (wihout the comma)"
435 text: "In http://example.com/test, Douglas explains 42."
436 expected: "In <a href=\"http://example.com/test\">http://example.com/test</a>, Douglas explains 42."
437
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
438 - description: "Autolink url followed by . (without it)"
439 text: "text http://example.com."
440 expected: "text <a href=\"http://example.com\">http://example.com</a>."
441
442 - description: "Autolink url followed by : (without it)"
443 text: "text http://example.com:"
444 expected: "text <a href=\"http://example.com\">http://example.com</a>:"
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
458 - description: "Autolink url followed by } (without it)"
459 text: "text http://example.com}"
460 expected: "text <a href=\"http://example.com\">http://example.com</a>}"
461
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
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
470 - description: "Autolink url preceded by /"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
471 text: "text /http://example.com"
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
472 expected: "text /<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
473
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
474 - description: "Autolink url preceded by !"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
475 text: "text !http://example.com"
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
476 expected: "text !<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
477
478 - description: "DO NOT Autolink url preceded by ="
479 text: "text =http://example.com"
07c9cff @keitaf Modify test cases to autolink URL preceded by punctuation characters.
keitaf authored
480 expected: "text =<a href=\"http://example.com\">http://example.com</a>"
481
482 - description: "Autolink url surrounded by double quotes"
483 text: "text \"http://example.com\""
484 expected: "text \"<a href=\"http://example.com\">http://example.com</a>\""
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
485
335add9 @bcherry don't allow @ as a preceding character for URLs
bcherry authored
486 - description: "DO NOT Autolink url preceded by @"
487 text: "@http://example.com"
488 expected: "@http://example.com"
489
490 - description: "DO NOT Autolink domain in email address"
491 text: "foo@bar.com"
492 expected: "foo@bar.com"
493
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
494 - description: "Autolink url embedded in link tag"
495 text: "<link rel='true'>http://example.com</link>"
496 expected: "<link rel='true'><a href=\"http://example.com\">http://example.com</a></link>"
497
498 - description: "Autolink multiple urls"
499 text: "http://example.com https://sslexample.com http://sub.example.com"
4c437bc Remove invalid test case
Matt Sanford authored
500 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
501
502 - description: "Autolink url with long TLD"
503 text: "http://example.mobi/path"
504 expected: "<a href=\"http://example.mobi/path\">http://example.mobi/path</a>"
505
49f08f5 @bcherry new conformance behavior
bcherry authored
506 - description: "Autolink url containing ending with #value (not as url + hashtag)"
507 text: "http://foo.com/?#foo"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
508 expected: "<a href=\"http://foo.com/?#foo\">http://foo.com/?#foo</a>"
49f08f5 @bcherry new conformance behavior
bcherry authored
509
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
510 - description: "DO NOT Autolink url without protocol (with www)"
49f08f5 @bcherry new conformance behavior
bcherry authored
511 text: "www.example.biz"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
512 expected: "www.example.biz"
8e920e6 Add case sensitivity test for link without protocol
Matt Sanford authored
513
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
514 - description: "DO NOT Autolink url without protocol (with WWW)"
49f08f5 @bcherry new conformance behavior
bcherry authored
515 text: "WWW.EXAMPLE.BIZ"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
516 expected: "WWW.EXAMPLE.BIZ"
49f08f5 @bcherry new conformance behavior
bcherry authored
517
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
518 - description: "DO NOT Autolink URL without protocol and without www (ending in .com)"
49f08f5 @bcherry new conformance behavior
bcherry authored
519 text: "foo.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
520 expected: "foo.com"
49f08f5 @bcherry new conformance behavior
bcherry authored
521
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
522 - description: "DO NOT Autolink URL without protocol and without www (ending in .org)"
49f08f5 @bcherry new conformance behavior
bcherry authored
523 text: "foo.org"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
524 expected: "foo.org"
49f08f5 @bcherry new conformance behavior
bcherry authored
525
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
526 - description: "DO NOT Autolink URL without protocol and without www (ending in .net)"
49f08f5 @bcherry new conformance behavior
bcherry authored
527 text: "foo.net"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
528 expected: "foo.net"
49f08f5 @bcherry new conformance behavior
bcherry authored
529
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
530 - description: "DO NOT Autolink URL without protocol and without www (ending in .gov)"
49f08f5 @bcherry new conformance behavior
bcherry authored
531 text: "foo.gov"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
532 expected: "foo.gov"
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 and without www (ending in .edu)"
49f08f5 @bcherry new conformance behavior
bcherry authored
535 text: "foo.edu"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
536 expected: "foo.edu"
49f08f5 @bcherry new conformance behavior
bcherry authored
537
538 - description: "Autolink URL without protocol and without www not ending in /.(edu|com|gov|org|net)/"
539 text: "foo.it twitter.co.jp foo.commerce foo.nettastic foo.us foo.co.uk"
540 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
541
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
542 - 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…
hoverbird authored
543 text: "http://foo.com AND https://bar.com AND www.foobar.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
544 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…
hoverbird authored
545
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
546 - 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
547 text: "See http://example.com example.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
548 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
549
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored
550 - description: "Autolink url that includes @-sign and numeric dir under it"
551 text: "http://www.flickr.com/photos/29674651@N00/4382024406"
552 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a>"
553
554 - description: "Autolink url that includes @-sign and non-numeric dir under it"
555 text: "http://www.flickr.com/photos/29674651@N00/foobar"
e119e95 Correct the flickr-ish path info
Matt Sanford authored
556 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
557
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
558 - 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
559 text: "I think it's proper to end sentences with a period http://tell.me.com. Even when they contain a URL."
560 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 b…
hoverbird authored
561
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
562 - 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 b…
hoverbird authored
563 text: "I think it's proper to end sentences with a period http://tell.me/why. Even when they contain a URL."
564 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."
565
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
566 - description: "Autolink URL with a query followed by a period doesn't swallow the period."
567 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."
568 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."
569
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sin…
hoverbird authored
570 - description: "Autolink URL with a hyphen in the domain name"
571 text: "Czech out sweet deals at http://mrs.domain-dash.biz ok?"
572 expected: "Czech out sweet deals at <a href=\"http://mrs.domain-dash.biz\">http://mrs.domain-dash.biz</a> ok?"
573
64578fb Add punycode test case
Matt Sanford authored
574 - description: "Autolink an IDN (punycode) domain and TLD"
575 text: "See also: http://xn--80abe5aohbnkjb.xn--p1ai/"
576 expected: "See also: <a href=\"http://xn--80abe5aohbnkjb.xn--p1ai/\">http://xn--80abe5aohbnkjb.xn--p1ai/</a>"
577
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored
578 - description: "Autolink URL should NOT autolink www...foo"
579 text: "Is www...foo a valid URL?"
580 expected: "Is www...foo a valid URL?"
581
582 - description: "Autolink URL should NOT autolink www.-foo.com"
583 text: "Is www.-foo.com a valid URL?"
584 expected: "Is www.-foo.com a valid URL?"
585
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
586 - 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
587 text: "Is www.foo-bar.com a valid URL?"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
588 expected: "Is www.foo-bar.com a valid URL?"
589
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to…
Matt Sanford authored
590 - description: "Autolink URL should autolink a domain with a valid dash and a protocol"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
591 text: "Is http://www.foo-bar.com a valid URL?"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
592 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 embded…
hoverbird authored
593
7be56b7 Add a conformance test for search URLs (already passes. Toubleshootin…
Matt Sanford authored
594 - description: "Autolink URL should link search urls (with &lang=, not &lang;)"
bcddd57 @keitaf Update test cases for autolinking hashtags by adding '#!'
keitaf authored
595 text: "Check out http://search.twitter.com/#!/search?q=avro&lang=en"
596 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. Toubleshootin…
Matt Sanford authored
597
48c4088 Add a test case for URLs with very long paths
Matt Sanford authored
598 - description: "Autolink URL should link urls with very long paths"
599 text: "Check out http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
600 expected: "Check out <a href=\"http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\">http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</a>"
c5ef022 Add an addition XSS test
Matt Sanford authored
601
602 - 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
603 text: "example: https://twitter.com/otm_m@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
604 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
605
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to…
Matt Sanford authored
606 - description: "Autolink URL should autolink a URL with a - or + at the end of the path"
607 text: "Go to http://example.com/a+ or http://example.com/a-"
608 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
609
7ff3017 Add more tests around the v1.3.1 conformance fixes
Matt Sanford authored
610 - description: "Autolink URL should autolink a URL with a - or + at the end of the path and query parameters"
611 text: "Go to http://example.com/a+?this=that or http://example.com/a-?this=that"
612 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>"
613
614 - description: "Autolink URL should autolink URLs with longer paths ending in -"
615 text: "Go to http://example.com/view/slug-url-?foo=bar"
616 expected: "Go to <a href=\"http://example.com/view/slug-url-?foo=bar\">http://example.com/view/slug-url-?foo=bar</a>"
617
aaeb7c2 Add extraction and autolink tests for domains with spaces
Matt Sanford authored
618 - description: "Autolink URL should NOT link URLs with domains beginning in a space"
619 text: "@user Try http:// example.com/path"
620 expected: "@user Try http:// example.com/path"
621
3602846 Add non-breaking space (U+00A0) tests
Matt Sanford authored
622 - description: "Autolink URL should NOT link URLs with domains beginning in a non-breaking space (U+00A0)"
623 text: "@user Try http:// example.com/path"
624 expected: "@user Try http:// example.com/path"
625
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
626 - description: "Autolink URL should link paths containing accented characters"
91506d3 @mzsanford Add test for accented path character in URL: https://github.com/twitt…
mzsanford authored
627 text: "See: http://example.com/café"
fcff01c @mzsanford Spelling correction in accented URL path test
mzsanford authored
628 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/twitt…
mzsanford authored
629
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
630 - description: "Autolink URL should not link URL without protocol"
631 text: "See: www.twitter.com or twitter.com/twitter"
632 expected: "See: www.twitter.com or twitter.com/twitter"
633
29d0a1b @keitaf Add a test to autolink t.co URL followed by punctuation.
keitaf authored
634 - description: "Autolink t.co URL followed by punctuation"
635 text: "See: http://t.co/abcde's page"
636 expected: "See: <a href=\"http://t.co/abcde\">http://t.co/abcde</a>'s page"
637
0bed1d7 @keitaf Add test cases for URLs preceded by $.
keitaf authored
638 - 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
639 text: "$https://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
640 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
641
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
642 all:
6741760 Make the auto link all test more realistic
Matt Sanford authored
643 - description: "Autolink all does not break on URL with @"
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sin…
hoverbird authored
644 text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
645 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
646
1b2c3be Add autolink test for URL with & but no ?
Matt Sanford authored
647 - description: "Autolink all does not allow & without ?"
648 text: "Check out: http://example.com/test&@chasesechrist"
4a31935 @keitaf Modify a test case with @mention preceded by &.
keitaf authored
649 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
650
c5ef022 Add an addition XSS test
Matt Sanford authored
651 - description: "Correctly handles URL follower directly by @user"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored
652 text: "See: http://example.com/@user"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
653 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
654
13926c1 @bcherry added some more conformance tests for XSS stuff
bcherry authored
655 - description: "Correctly handles URL with an @user followed by trailing /"
656 text: "See: http://example.com/@user/"
657 expected: "See: <a href=\"http://example.com/@user/\">http://example.com/@user/</a>"
658
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored
659 - description: "Does not allow an XSS after an @"
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
660 text: "See: http://x.xx.com/@\"style=\"color:pink\"onmouseover=alert(1)//"
661 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
662
663 - 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
664 text: "#https://twitter.com @https://twitter.com"
665 expected: "#https://twitter.com @https://twitter.com"
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
666
667 - description: "Autolink hashtag if followed by . and TLD"
668 text: "#twitter.com #twitter.co.jp"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
669 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
670
671 - description: "Autolink @mention if followed by . and TLD"
672 text: "@twitter.com @twitter.co.jp"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
673 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.