Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 439 lines (330 sloc) 27.189 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 Ru...
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 Ru...
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 Ru...
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 Ru...
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 Ru...
Matt Sanford authored
34 expected: "あ@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>の"
35
63f28c8 Add a conformance tests for autolinking username in old-style RTs when s...
Matt Sanford authored
36 - description: "Autolink usernamt in compressed RT"
37 text: "RT@username: long Tweet is loooong"
38 expected: "RT@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>: long Tweet is loooong"
39
84357f0 Add conformance tests for @user followed by accents (prevent spamming sh...
Matt Sanford authored
40 - description: "DO NOT Autolink username followed by accented latin characters"
41 text: "@aliceìnheiro something something"
42 expected: "@aliceìnheiro something something"
43
44 - description: "DO NOT Autolink username @_ in @_@"
45 text: "oh, snap! @_@"
46 expected: "oh, snap! @_@"
47
8977065 Fill in the remainder of the user autolinking specs from the original Ru...
Matt Sanford authored
48 - description: "Autolink username with full-width at sign (U+FF20)"
49 text: "@username"
50 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>"
51
52 - description: "DO NOT Autolink username over 20 characters"
53 text: "@username9012345678901"
d6c92bb Fix bug in conformance test data: autolinking username > 20 chars (redux...
Matt Sanford authored
54 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username901234567890\">username901234567890</a>1"
73eff47 @bcherry added test for two usernames
bcherry authored
55
56 - description: "Autolink two usernames"
57 text: "@foo @bar"
58 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/foo\">foo</a> @<a class=\"tweet-url username\" href=\"http://twitter.com/bar\">bar</a>"
8934cee @bcherry another edge case test
bcherry authored
59
687d335 @bcherry autolink usernames followed by :
bcherry authored
60 - description: "Autolink usernames followed by :"
61 text: "@foo: @bar"
62 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/foo\">foo</a>: @<a class=\"tweet-url username\" href=\"http://twitter.com/bar\">bar</a>"
63
8934cee @bcherry another edge case test
bcherry authored
64 - description: "Autolink usernames that are followed by international characters"
5b465dd @bcherry fix the yml
bcherry authored
65 text: "@foo îs in the house"
66 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/foo\">foo</a> îs in the house"
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"
70 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
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"
74 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
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"
82 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
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"
90 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
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&^$%^"
94 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
95
048e0a5 Correct the list linking tests to corrently reflect the legnth restricti...
Matt Sanford authored
96 - description: "Autolink list name over 25 characters (truncated to 25)"
97 text: "@username/list567890123456789012345A"
98 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
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"
102 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list_name\">username/list_name</a>"
103
104 - description: "Autolink list that contains a -"
105 text: "text @username/list-name"
106 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list-name\">username/list-name</a>"
107
108 - description: "Autolink list that contains a number"
109 text: "text @username/list123"
110 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list123\">username/list123</a>"
111
112 - description: "DO NOT Autolink list starting with a number"
113 text: "@username/1list"
114 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>/1list"
115
4cb08c8 Add readme and sample files
Matt Sanford authored
116 hashtags:
117 - description: "Autolink trailing hashtag"
118 text: "text #hashtag"
119 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
120
121 - description: "Autolink alphanumeric hashtag (letter-number-letter)"
122 text: "text #hash0tag"
123 expected: "text <a href=\"http://twitter.com/search?q=%23hash0tag\" title=\"#hash0tag\" class=\"tweet-url hashtag\">#hash0tag</a>"
124
125 - description: "Autolink alphanumeric hashtag (number-letter)"
126 text: "text #1tag"
127 expected: "text <a href=\"http://twitter.com/search?q=%231tag\" title=\"#1tag\" class=\"tweet-url hashtag\">#1tag</a>"
128
129 - description: "Autolink hashtag with underscore"
130 text: "text #hash_tag"
131 expected: "text <a href=\"http://twitter.com/search?q=%23hash_tag\" title=\"#hash_tag\" class=\"tweet-url hashtag\">#hash_tag</a>"
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"
143 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
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"
147 expected: "text.<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
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!"
155 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>!"
156
157 - description: "Autolink hashtag followed by Japanese"
158 text: "text #hashtagの"
159 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>の"
160
161 - description: "Autolink hashtag preceded by full-width space (U+3000)"
162 text: "text #hashtag"
163 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
164
165 - description: "Autolink hashtag followed by full-width space (U+3000)"
166 text: "#hashtag text"
167 expected: "<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a> text"
168
169 - description: "Autolink hashtag with full-width hash (U+FF03)"
170 text: "#hashtag"
171 expected: "<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
172
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
173 - description: "DO NOT Autolink hashtag with accented character at the start"
174 text: "#éhashtag"
175 expected: "#éhashtag"
176
177 - description: "Autolink hashtag with accented character at the end"
178 text: "#hashtagé"
179 expected: "<a href=\"http://twitter.com/search?q=%23hashtagé\" title=\"#hashtagé\" class=\"tweet-url hashtag\">#hashtagé</a>"
180
181 - description: "Autolink hashtag with accented character in the middle"
182 text: "#hashétag"
183 expected: "<a href=\"http://twitter.com/search?q=%23hashétag\" title=\"#hashétag\" class=\"tweet-url hashtag\">#hashétag</a>"
184
185
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
186 urls:
187 - description: "Autolink trailing url"
188 text: "text http://example.com"
189 expected: "text <a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
190
191 - description: "Autolink url in mid-text"
192 text: "text http://example.com more text"
193 expected: "text <a href=\"http://example.com\">http://example.com</a> more text"
194
195 - description: "Autolink url in Japanese text"
196 text: "いまなにしてるhttp://example.comいまなにしてる"
197 expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
198
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
199 - description: "Autolink url surrounded by parentheses does not capture them"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
200 text: "text (http://example.com)"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
201 expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
202
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
203 - description: "Autolink url with path surrounded by parentheses does not capture them"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
204 text: "text (http://example.com/test)"
205 expected: "text (<a href=\"http://example.com/test\">http://example.com/test</a>)"
206
207 - description: "Autolink url with embedded parentheses"
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
208 text: "text http://msdn.com/S(deadbeef)/page.htm"
ee1441d Mistyped test data
Matt Sanford authored
209 expected: "text <a href=\"http://msdn.com/S(deadbeef)/page.htm\">http://msdn.com/S(deadbeef)/page.htm</a>"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
210
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored
211 - description: "Autolink url with balanced parens hiding XSS"
212 text: 'text http://foo.bar/("onclick="alert(1)")'
213 expected: 'text <a href="http://foo.bar/">http://foo.bar/</a>("onclick="alert(1)")'
214
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
215 - description: "Autolink url should NOT capture unbalanced parens"
216 text: "Parenthetically bad http://example.com/i_has_a_) thing"
217 expected: "Parenthetically bad <a href=\"http://example.com/i_has_a_\">http://example.com/i_has_a_</a>) thing"
218
85bb047 @hoverbird Remove conformance spec prohibiting URLs preceded by a colon
hoverbird authored
219 - description: "Autolink url containing unicode characters"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
220 text: "I enjoy Macintosh Brand computers: http://✪df.ws/ejp"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
221 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
222
056022c Add a .co.jp autolink test
Matt Sanford authored
223 - description: "Autolink url with .co. under TLD"
224 text: "test http://www.example.co.jp"
225 expected: "test <a href=\"http://www.example.co.jp\">http://www.example.co.jp</a>"
226
f6dafb5 Add more edge case testing for pinctuation in domains
Matt Sanford authored
227 - description: "DO NOT Autolink url containing ! character in the domain"
228 text: "badly formatted http://foo!bar.com"
229 expected: "badly formatted http://foo!bar.com"
230
231 - description: "DO NOT Autolink url containing _ character in the domain"
232 text: "badly formatted http://foo_bar.com"
233 expected: "badly formatted http://foo_bar.com"
234
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
235 - description: "Autolink url preceded by :"
236 text: "text:http://example.com"
237 expected: "text:<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
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
75b0baf Add a conformance test for autolinking URLs with paths followed by a com...
Matt Sanford authored
251 - description: "Autolink url with path followed by a comma (wihout the comma)"
252 text: "In http://example.com/test, Douglas explains 42."
253 expected: "In <a href=\"http://example.com/test\">http://example.com/test</a>, Douglas explains 42."
254
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
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: "Autolink url followed by : (without it)"
260 text: "text http://example.com:"
261 expected: "text <a href=\"http://example.com\">http://example.com</a>:"
262
263 - description: "Autolink url followed by ; (without it)"
264 text: "text http://example.com;"
265 expected: "text <a href=\"http://example.com\">http://example.com</a>;"
266
267 - description: "Autolink url followed by ] (without it)"
268 text: "text http://example.com]"
269 expected: "text <a href=\"http://example.com\">http://example.com</a>]"
270
271 - description: "Autolink url followed by ) (without it)"
272 text: "text http://example.com)"
273 expected: "text <a href=\"http://example.com\">http://example.com</a>)"
274
275 - description: "Autolink url followed by } (without it)"
276 text: "text http://example.com}"
277 expected: "text <a href=\"http://example.com\">http://example.com</a>}"
278
279 - description: "Autolink url followed by = (without it)"
280 text: "text http://example.com="
281 expected: "text <a href=\"http://example.com\">http://example.com</a>="
282
283 - description: "Autolink url followed by ' (without it)"
284 text: "text http://example.com'"
285 expected: "text <a href=\"http://example.com\">http://example.com</a>'"
286
287 - description: "DO NOT Autolink url preceded by /"
288 text: "text /http://example.com"
289 expected: "text /http://example.com"
290
291 - description: "DO NOT Autolink url preceded by !"
292 text: "text !http://example.com"
293 expected: "text !http://example.com"
294
295 - description: "DO NOT Autolink url preceded by ="
296 text: "text =http://example.com"
297 expected: "text =http://example.com"
298
335add9 @bcherry don't allow @ as a preceding character for URLs
bcherry authored
299 - description: "DO NOT Autolink url preceded by @"
300 text: "@http://example.com"
301 expected: "@http://example.com"
302
303 - description: "DO NOT Autolink domain in email address"
304 text: "foo@bar.com"
305 expected: "foo@bar.com"
306
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
307 - description: "Autolink url embedded in link tag"
308 text: "<link rel='true'>http://example.com</link>"
309 expected: "<link rel='true'><a href=\"http://example.com\">http://example.com</a></link>"
310
311 - description: "Autolink multiple urls"
312 text: "http://example.com https://sslexample.com http://sub.example.com"
4c437bc Remove invalid test case
Matt Sanford authored
313 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
314
315 - description: "Autolink url with long TLD"
316 text: "http://example.mobi/path"
317 expected: "<a href=\"http://example.mobi/path\">http://example.mobi/path</a>"
318
49f08f5 @bcherry new conformance behavior
bcherry authored
319 - description: "Autolink url containing ending with #value (not as url + hashtag)"
320 text: "http://foo.com/?#foo"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
321 expected: "<a href=\"http://foo.com/?#foo\">http://foo.com/?#foo</a>"
49f08f5 @bcherry new conformance behavior
bcherry authored
322
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
323 - description: "DO NOT Autolink url without protocol (with www)"
49f08f5 @bcherry new conformance behavior
bcherry authored
324 text: "www.example.biz"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
325 expected: "www.example.biz"
8e920e6 Add case sensitivity test for link without protocol
Matt Sanford authored
326
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
327 - description: "DO NOT Autolink url without protocol (with WWW)"
49f08f5 @bcherry new conformance behavior
bcherry authored
328 text: "WWW.EXAMPLE.BIZ"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
329 expected: "WWW.EXAMPLE.BIZ"
49f08f5 @bcherry new conformance behavior
bcherry authored
330
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
331 - description: "DO NOT Autolink URL without protocol and without www (ending in .com)"
49f08f5 @bcherry new conformance behavior
bcherry authored
332 text: "foo.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
333 expected: "foo.com"
49f08f5 @bcherry new conformance behavior
bcherry authored
334
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
335 - description: "DO NOT Autolink URL without protocol and without www (ending in .org)"
49f08f5 @bcherry new conformance behavior
bcherry authored
336 text: "foo.org"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
337 expected: "foo.org"
49f08f5 @bcherry new conformance behavior
bcherry authored
338
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
339 - description: "DO NOT Autolink URL without protocol and without www (ending in .net)"
49f08f5 @bcherry new conformance behavior
bcherry authored
340 text: "foo.net"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
341 expected: "foo.net"
49f08f5 @bcherry new conformance behavior
bcherry authored
342
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
343 - description: "DO NOT Autolink URL without protocol and without www (ending in .gov)"
49f08f5 @bcherry new conformance behavior
bcherry authored
344 text: "foo.gov"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
345 expected: "foo.gov"
49f08f5 @bcherry new conformance behavior
bcherry authored
346
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
347 - description: "DO NOT Autolink URL without protocol and without www (ending in .edu)"
49f08f5 @bcherry new conformance behavior
bcherry authored
348 text: "foo.edu"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
349 expected: "foo.edu"
49f08f5 @bcherry new conformance behavior
bcherry authored
350
351 - description: "Autolink URL without protocol and without www not ending in /.(edu|com|gov|org|net)/"
352 text: "foo.it twitter.co.jp foo.commerce foo.nettastic foo.us foo.co.uk"
353 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
354
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
355 - description: "Multiple URLs with different protocols but not without a protocol"
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
356 text: "http://foo.com AND https://bar.com AND www.foobar.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
357 expected: "<a href=\"http://foo.com\">http://foo.com</a> AND <a href=\"https://bar.com\">https://bar.com</a> AND www.foobar.com"
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
358
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
359 - 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
360 text: "See http://example.com example.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
361 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
362
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored
363 - description: "Autolink url that includes @-sign and numeric dir under it"
364 text: "http://www.flickr.com/photos/29674651@N00/4382024406"
365 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a>"
366
367 - description: "Autolink url that includes @-sign and non-numeric dir under it"
368 text: "http://www.flickr.com/photos/29674651@N00/foobar"
e119e95 Correct the flickr-ish path info
Matt Sanford authored
369 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
370
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
371 - description: "Autolink URL with only a domain followed by a period doesn't swallow the period."
372 text: "I think it's proper to end sentences with a period http://tell.me. Even when they contain a URL."
373 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 by a...
hoverbird authored
374
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
375 - description: "Autolink URL with a path followed by a period doesn't swallow the period."
1e2ddb5 @hoverbird Added failing cases for URLs surrounded by parens and URLs followed by a...
hoverbird authored
376 text: "I think it's proper to end sentences with a period http://tell.me/why. Even when they contain a URL."
377 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."
378
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well as...
hoverbird authored
379 - description: "Autolink URL with a query followed by a period doesn't swallow the period."
380 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."
381 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."
382
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow single...
hoverbird authored
383 - description: "Autolink URL with a hyphen in the domain name"
384 text: "Czech out sweet deals at http://mrs.domain-dash.biz ok?"
385 expected: "Czech out sweet deals at <a href=\"http://mrs.domain-dash.biz\">http://mrs.domain-dash.biz</a> ok?"
386
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored
387 - description: "Autolink URL should NOT autolink www...foo"
388 text: "Is www...foo a valid URL?"
389 expected: "Is www...foo a valid URL?"
390
391 - description: "Autolink URL should NOT autolink www.-foo.com"
392 text: "Is www.-foo.com a valid URL?"
393 expected: "Is www.-foo.com a valid URL?"
394
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
395 - 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
396 text: "Is www.foo-bar.com a valid URL?"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
397 expected: "Is www.foo-bar.com a valid URL?"
398
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to v1...
Matt Sanford authored
399 - description: "Autolink URL should autolink a domain with a valid dash and a protocol"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
400 text: "Is http://www.foo-bar.com a valid URL?"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
401 expected: "Is <a href=\"http://www.foo-bar.com\">http://www.foo-bar.com</a> a valid URL?"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embdedded...
hoverbird authored
402
7be56b7 Add a conformance test for search URLs (already passes. Toubleshooting a...
Matt Sanford authored
403 - description: "Autolink URL should link search urls (with &lang=, not &lang;)"
404 text: "Check out http://search.twitter.com/search?q=avro&lang=en"
1d0ed15 @bcherry added expected encoding for & in url
bcherry authored
405 expected: "Check out <a href=\"http://search.twitter.com/search?q=avro&amp;lang=en\">http://search.twitter.com/search?q=avro&amp;lang=en</a>"
7be56b7 Add a conformance test for search URLs (already passes. Toubleshooting a...
Matt Sanford authored
406
48c4088 Add a test case for URLs with very long paths
Matt Sanford authored
407 - description: "Autolink URL should link urls with very long paths"
408 text: "Check out http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</a>"
c5ef022 Add an addition XSS test
Matt Sanford authored
410
411 - description: "Autolink URL should HTML escape the URL"
412 text: "example: http://twitter.com/otm_m@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
413 expected: "example: <a href=\"http://twitter.com/otm_m\">http://twitter.com/otm_m</a>@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
414
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to v1...
Matt Sanford authored
415 - description: "Autolink URL should autolink a URL with a - or + at the end of the path"
416 text: "Go to http://example.com/a+ or http://example.com/a-"
417 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
418
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
419 all:
6741760 Make the auto link all test more realistic
Matt Sanford authored
420 - description: "Autolink all does not break on URL with @"
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow single...
hoverbird authored
421 text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
422 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
423
1b2c3be Add autolink test for URL with & but no ?
Matt Sanford authored
424 - description: "Autolink all does not allow & without ?"
425 text: "Check out: http://example.com/test&@chasesechrist"
426 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
427
c5ef022 Add an addition XSS test
Matt Sanford authored
428 - description: "Correctly handles URL follower directly by @user"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored
429 text: "See: http://example.com/@user"
430 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
431
13926c1 @bcherry added some more conformance tests for XSS stuff
bcherry authored
432 - description: "Correctly handles URL with an @user followed by trailing /"
433 text: "See: http://example.com/@user/"
434 expected: "See: <a href=\"http://example.com/@user/\">http://example.com/@user/</a>"
435
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored
436 - description: "Does not allow an XSS after an @"
437 text: "See: http://x.xx/@\"style=\"color:pink\"onmouseover=alert(1)//"
438 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.