Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 358 lines (270 sloc) 23.214 kB
4cb08c8 Add readme and sample files
Matt Sanford authored
1
2 tests:
3 usernames:
4 - description: "Autolink trailing username"
5 text: "text @username"
6 expected: "text @<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
7
b23c6aa Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
8 - description: "Autolink username at the beginning"
9 text: "@username text"
10 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a> text"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
11
12 - 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
13 text: "meet@the beach"
14 expected: "meet@the beach"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
15
e32214a Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
16 - description: "Autolink username preceded by puctuation"
17 text: "great.@username"
18 expected: "great.@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
19
20 - description: "Autolink username followed by puctuation"
21 text: "@username&^$%^"
22 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>&^$%^"
23
24 - description: "Autolink username followed by Japanese"
25 text: "@usernameの"
26 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>の"
27
28 - description: "Autolink username preceded by Japanese"
29 text: "あ@username"
30 expected: "あ@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>"
31
32 - description: "Autolink username surrounded by Japanese"
e194a08 Fix bug in conformance test data: autolinking surrounded by Japanese
Matt Sanford authored
33 text: "あ@usernameの"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
34 expected: "あ@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>の"
35
36 - description: "Autolink username with full-width at sign (U+FF20)"
37 text: "@username"
38 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>"
39
40 - description: "DO NOT Autolink username over 20 characters"
41 text: "@username9012345678901"
d6c92bb Fix bug in conformance test data: autolinking username > 20 chars (re…
Matt Sanford authored
42 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username901234567890\">username901234567890</a>1"
4cb08c8 Add readme and sample files
Matt Sanford authored
43 lists:
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
44 - description: "Autolink list preceded by a space"
4cb08c8 Add readme and sample files
Matt Sanford authored
45 text: "text @username/list"
46 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
47
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
48 - description: "DO NOT Autolink list when space follows slash"
49 text: "text @username/ list"
50 expected: "text @<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>/ list"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
51
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
52 - description: "DO NOT Autolink list with empty username"
53 text: "text @/list"
54 expected: "text @/list"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
55
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
56 - description: "Autolink list at the beginning"
57 text: "@username/list"
58 expected: "@<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
59
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
60 - description: "DO NOT Autolink list preceded by letter"
61 text: "meet@the/beach"
62 expected: "meet@the/beach"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
63
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
64 - description: "Autolink list preceded by puctuation"
65 text: "great.@username/list"
66 expected: "great.@<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
67
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
68 - description: "Autolink list followed by puctuation"
69 text: "@username/list&^$%^"
70 expected: "@<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list\">username/list</a>&^$%^"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
71
048e0a5 Correct the list linking tests to corrently reflect the legnth restri…
Matt Sanford authored
72 - description: "Autolink list name over 25 characters (truncated to 25)"
73 text: "@username/list567890123456789012345A"
74 expected: "@<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list567890123456789012345\">username/list567890123456789012345</a>A"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
75
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
76 - description: "Autolink list that contains an _"
77 text: "text @username/list_name"
78 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list_name\">username/list_name</a>"
79
80 - description: "Autolink list that contains a -"
81 text: "text @username/list-name"
82 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list-name\">username/list-name</a>"
83
84 - description: "Autolink list that contains a number"
85 text: "text @username/list123"
86 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list123\">username/list123</a>"
87
88 - description: "DO NOT Autolink list starting with a number"
89 text: "@username/1list"
90 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>/1list"
91
4cb08c8 Add readme and sample files
Matt Sanford authored
92 hashtags:
93 - description: "Autolink trailing hashtag"
94 text: "text #hashtag"
95 expected: "text <a href=\"http://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
96
97 - description: "Autolink alphanumeric hashtag (letter-number-letter)"
98 text: "text #hash0tag"
99 expected: "text <a href=\"http://twitter.com/search?q=%23hash0tag\" title=\"#hash0tag\" class=\"tweet-url hashtag\">#hash0tag</a>"
100
101 - description: "Autolink alphanumeric hashtag (number-letter)"
102 text: "text #1tag"
103 expected: "text <a href=\"http://twitter.com/search?q=%231tag\" title=\"#1tag\" class=\"tweet-url hashtag\">#1tag</a>"
104
105 - description: "Autolink hashtag with underscore"
106 text: "text #hash_tag"
107 expected: "text <a href=\"http://twitter.com/search?q=%23hash_tag\" title=\"#hash_tag\" class=\"tweet-url hashtag\">#hash_tag</a>"
108
109 - description: "DO NOT Autolink all-numeric hashtags"
110 text: "text #1234"
111 expected: "text #1234"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
112
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
113 - description: "DO NOT Autolink hashtag preceded by a letter"
114 text: "text#hashtag"
115 expected: "text#hashtag"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
116
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
117 - description: "Autolink multiple hashtags"
118 text: "text #hashtag1 #hashtag2"
119 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag1\" title=\"#hashtag1\" class=\"tweet-url hashtag\">#hashtag1</a> <a href=\"http://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
120
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
121 - description: "Autolink hashtag preceded by a period"
122 text: "text.#hashtag"
123 expected: "text.<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
124
125 - description: "DO NOT Autolink hashtag preceded by &"
126 text: "&#nbsp;"
127 expected: "&#nbsp;"
128
129 - description: "Autolink hashtag followed by ! (! not included)"
130 text: "text #hashtag!"
131 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>!"
132
133 - description: "Autolink hashtag followed by Japanese"
134 text: "text #hashtagの"
135 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>の"
136
137 - description: "Autolink hashtag preceded by full-width space (U+3000)"
138 text: "text #hashtag"
139 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
140
141 - description: "Autolink hashtag followed by full-width space (U+3000)"
142 text: "#hashtag text"
143 expected: "<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a> text"
144
145 - description: "Autolink hashtag with full-width hash (U+FF03)"
146 text: "#hashtag"
147 expected: "<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
148
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
149 - description: "DO NOT Autolink hashtag with accented character at the start"
150 text: "#éhashtag"
151 expected: "#éhashtag"
152
153 - description: "Autolink hashtag with accented character at the end"
154 text: "#hashtagé"
155 expected: "<a href=\"http://twitter.com/search?q=%23hashtagé\" title=\"#hashtagé\" class=\"tweet-url hashtag\">#hashtagé</a>"
156
157 - description: "Autolink hashtag with accented character in the middle"
158 text: "#hashétag"
159 expected: "<a href=\"http://twitter.com/search?q=%23hashétag\" title=\"#hashétag\" class=\"tweet-url hashtag\">#hashétag</a>"
160
161
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
162 urls:
163 - description: "Autolink trailing url"
164 text: "text http://example.com"
165 expected: "text <a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
166
167 - description: "Autolink url in mid-text"
168 text: "text http://example.com more text"
169 expected: "text <a href=\"http://example.com\">http://example.com</a> more text"
170
171 - description: "Autolink url in Japanese text"
172 text: "いまなにしてるhttp://example.comいまなにしてる"
173 expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
174
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
175 - description: "Autolink url surrounded by parentheses does not capture them"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
176 text: "text (http://example.com)"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
177 expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
178
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
179 - 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
180 text: "text (http://example.com/test)"
181 expected: "text (<a href=\"http://example.com/test\">http://example.com/test</a>)"
182
183 - description: "Autolink url with embedded parentheses"
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
184 text: "text http://msdn.com/S(deadbeef)/page.htm"
ee1441d Mistyped test data
Matt Sanford authored
185 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
186
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored
187 - description: "Autolink url with balanced parens hiding XSS"
188 text: 'text http://foo.bar/("onclick="alert(1)")'
189 expected: 'text <a href="http://foo.bar/">http://foo.bar/</a>("onclick="alert(1)")'
190
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
191 - description: "Autolink url should NOT capture unbalanced parens"
192 text: "Parenthetically bad http://example.com/i_has_a_) thing"
193 expected: "Parenthetically bad <a href=\"http://example.com/i_has_a_\">http://example.com/i_has_a_</a>) thing"
194
85bb047 @hoverbird Remove conformance spec prohibiting URLs preceded by a colon
hoverbird authored
195 - description: "Autolink url containing unicode characters"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
196 text: "I enjoy Macintosh Brand computers: http://✪df.ws/ejp"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
197 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
198
056022c Add a .co.jp autolink test
Matt Sanford authored
199 - description: "Autolink url with .co. under TLD"
200 text: "test http://www.example.co.jp"
201 expected: "test <a href=\"http://www.example.co.jp\">http://www.example.co.jp</a>"
202
f6dafb5 Add more edge case testing for pinctuation in domains
Matt Sanford authored
203 - description: "DO NOT Autolink url containing ! character in the domain"
204 text: "badly formatted http://foo!bar.com"
205 expected: "badly formatted http://foo!bar.com"
206
207 - description: "DO NOT Autolink url containing _ character in the domain"
208 text: "badly formatted http://foo_bar.com"
209 expected: "badly formatted http://foo_bar.com"
210
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
211 - description: "Autolink url preceded by :"
212 text: "text:http://example.com"
213 expected: "text:<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
214
215 - description: "Autolink url followed by ? (without it)"
216 text: "text http://example.com?"
217 expected: "text <a href=\"http://example.com\">http://example.com</a>?"
218
219 - description: "Autolink url followed by ! (without it)"
220 text: "text http://example.com!"
221 expected: "text <a href=\"http://example.com\">http://example.com</a>!"
222
223 - description: "Autolink url followed by , (without it)"
224 text: "text http://example.com,"
225 expected: "text <a href=\"http://example.com\">http://example.com</a>,"
226
227 - description: "Autolink url followed by . (without it)"
228 text: "text http://example.com."
229 expected: "text <a href=\"http://example.com\">http://example.com</a>."
230
231 - description: "Autolink url followed by : (without it)"
232 text: "text http://example.com:"
233 expected: "text <a href=\"http://example.com\">http://example.com</a>:"
234
235 - description: "Autolink url followed by ; (without it)"
236 text: "text http://example.com;"
237 expected: "text <a href=\"http://example.com\">http://example.com</a>;"
238
239 - description: "Autolink url followed by ] (without it)"
240 text: "text http://example.com]"
241 expected: "text <a href=\"http://example.com\">http://example.com</a>]"
242
243 - description: "Autolink url followed by ) (without it)"
244 text: "text http://example.com)"
245 expected: "text <a href=\"http://example.com\">http://example.com</a>)"
246
247 - description: "Autolink url followed by } (without it)"
248 text: "text http://example.com}"
249 expected: "text <a href=\"http://example.com\">http://example.com</a>}"
250
251 - description: "Autolink url followed by = (without it)"
252 text: "text http://example.com="
253 expected: "text <a href=\"http://example.com\">http://example.com</a>="
254
255 - description: "Autolink url followed by ' (without it)"
256 text: "text http://example.com'"
257 expected: "text <a href=\"http://example.com\">http://example.com</a>'"
258
259 - description: "DO NOT Autolink url preceded by /"
260 text: "text /http://example.com"
261 expected: "text /http://example.com"
262
263 - description: "DO NOT Autolink url preceded by !"
264 text: "text !http://example.com"
265 expected: "text !http://example.com"
266
267 - description: "DO NOT Autolink url preceded by ="
268 text: "text =http://example.com"
269 expected: "text =http://example.com"
270
271 - description: "Autolink url embedded in link tag"
272 text: "<link rel='true'>http://example.com</link>"
273 expected: "<link rel='true'><a href=\"http://example.com\">http://example.com</a></link>"
274
275 - description: "Autolink multiple urls"
276 text: "http://example.com https://sslexample.com http://sub.example.com"
4c437bc Remove invalid test case
Matt Sanford authored
277 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
278
279 - description: "Autolink url with long TLD"
280 text: "http://example.mobi/path"
281 expected: "<a href=\"http://example.mobi/path\">http://example.mobi/path</a>"
282
283 - description: "Autolink url without protocol (with www)"
284 text: "www.example.com"
285 expected: "<a href=\"http://www.example.com\">www.example.com</a>"
8e920e6 Add case sensitivity test for link without protocol
Matt Sanford authored
286
287 - description: "Autolink url without protocol (with WWW)"
288 text: "WWW.EXAMPLE.COM"
289 expected: "<a href=\"http://WWW.EXAMPLE.COM\">WWW.EXAMPLE.COM</a>"
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
290
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
291 - description: "Multiple URLs with different protocols"
292 text: "http://foo.com AND https://bar.com AND www.foobar.com"
293 expected: "<a href=\"http://foo.com\">http://foo.com</a> AND <a href=\"https://bar.com\">https://bar.com</a> AND <a href=\"http://www.foobar.com\">www.foobar.com</a>"
294
0aeb418 Add a test for two valid domains divided by a space
Matt Sanford authored
295 - description: "Autolink raw domain followed by domain"
296 text: "See http://example.com example.com"
297 expected: "See <a href=\"http://example.com\">http://example.com</a> example.com"
298
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored
299 - description: "Autolink url that includes @-sign and numeric dir under it"
300 text: "http://www.flickr.com/photos/29674651@N00/4382024406"
301 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a>"
302
303 - description: "Autolink url that includes @-sign and non-numeric dir under it"
304 text: "http://www.flickr.com/photos/29674651@N00/foobar"
e119e95 Correct the flickr-ish path info
Matt Sanford authored
305 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
306
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
307 - description: "Autolink URL with only a domain followed by a period doesn't swallow the period."
308 text: "I think it's proper to end sentences with a period http://tell.me. Even when they contain a URL."
309 expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me\">http://tell.me</a>. Even when they contain a URL."
1e2ddb5 @hoverbird Added failing cases for URLs surrounded by parens and URLs followed b…
hoverbird authored
310
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
311 - 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
312 text: "I think it's proper to end sentences with a period http://tell.me/why. Even when they contain a URL."
313 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."
314
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
315 - description: "Autolink URL with a query followed by a period doesn't swallow the period."
316 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."
317 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."
318
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sin…
hoverbird authored
319 - description: "Autolink URL with a hyphen in the domain name"
320 text: "Czech out sweet deals at http://mrs.domain-dash.biz ok?"
321 expected: "Czech out sweet deals at <a href=\"http://mrs.domain-dash.biz\">http://mrs.domain-dash.biz</a> ok?"
322
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored
323 - description: "Autolink URL should NOT autolink www...foo"
324 text: "Is www...foo a valid URL?"
325 expected: "Is www...foo a valid URL?"
326
327 - description: "Autolink URL should NOT autolink www.-foo.com"
328 text: "Is www.-foo.com a valid URL?"
329 expected: "Is www.-foo.com a valid URL?"
330
331 - description: "Autolink URL should autolink a domain with a valid dash"
332 text: "Is www.foo-bar.com a valid URL?"
333 expected: "Is <a href=\"http://www.foo-bar.com\">www.foo-bar.com</a> a valid URL?"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
334
7be56b7 Add a conformance test for search URLs (already passes. Toubleshootin…
Matt Sanford authored
335 - description: "Autolink URL should link search urls (with &lang=, not &lang;)"
336 text: "Check out http://search.twitter.com/search?q=avro&lang=en"
337 expected: "Check out <a href=\"http://search.twitter.com/search?q=avro&lang=en\">http://search.twitter.com/search?q=avro&lang=en</a>"
338
48c4088 Add a test case for URLs with very long paths
Matt Sanford authored
339 - description: "Autolink URL should link urls with very long paths"
340 text: "Check out http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</a>"
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
342 all:
6741760 Make the auto link all test more realistic
Matt Sanford authored
343 - description: "Autolink all does not break on URL with @"
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sin…
hoverbird authored
344 text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
345 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
346
1b2c3be Add autolink test for URL with & but no ?
Matt Sanford authored
347 - description: "Autolink all does not allow & without ?"
348 text: "Check out: http://example.com/test&@chasesechrist"
349 expected: "Check out: <a href=\"http://example.com/test\">http://example.com/test</a>&@<a class=\"tweet-url username\" href=\"http://twitter.com/chasesechrist\">chasesechrist</a>"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored
350
351 - description: "Currently handles URL follower directly by @user"
352 text: "See: http://example.com/@user"
353 expected: "See: <a href=\"http://example.com/\">http://example.com/</a>@<a class=\"tweet-url username\" href=\"http://twitter.com/user\">user</a>"
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored
354
355 - description: "Does not allow an XSS after an @"
356 text: "See: http://x.xx/@\"style=\"color:pink\"onmouseover=alert(1)//"
357 expected: "See: <a href=\"http://x.xx/\">http://x.xx/</a>@\"style=\"color:pink\"onmouseover=alert(1)//"
Something went wrong with that request. Please try again.