Skip to content
Newer
Older
100644 607 lines (456 sloc) 38.4 KB
4cb08c8 Add readme and sample files
Matt Sanford authored Jan 21, 2010
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 Jan 22, 2010
7
b23c6aa Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored Jan 22, 2010
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 Jan 22, 2010
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 Jan 22, 2010
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 Jan 22, 2010
15
e32214a Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored Jan 22, 2010
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 Jan 22, 2010
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 Jan 22, 2010
33 text: "あ@usernameの"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored Jan 22, 2010
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 whe…
Matt Sanford authored Sep 24, 2010
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…
Matt Sanford authored Sep 23, 2010
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…
Matt Sanford authored Jan 22, 2010
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 (re…
Matt Sanford authored Jan 22, 2010
54 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username901234567890\">username901234567890</a>1"
73eff47 @bcherry added test for two usernames
bcherry authored Oct 5, 2010
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 Oct 22, 2010
59
687d335 @bcherry autolink usernames followed by :
bcherry authored Nov 1, 2010
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 Oct 22, 2010
64 - description: "Autolink usernames that are followed by international characters"
5b465dd @bcherry fix the yml
bcherry authored Oct 22, 2010
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"
3aca14d Update conformance for validation, extraction and autolinking of Russ…
Matt Sanford authored May 18, 2011
67
4cb08c8 Add readme and sample files
Matt Sanford authored Jan 21, 2010
68 lists:
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
69 - description: "Autolink list preceded by a space"
4cb08c8 Add readme and sample files
Matt Sanford authored Jan 21, 2010
70 text: "text @username/list"
71 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 Jan 22, 2010
72
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
73 - description: "DO NOT Autolink list when space follows slash"
74 text: "text @username/ list"
75 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 Jan 22, 2010
76
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
77 - description: "DO NOT Autolink list with empty username"
78 text: "text @/list"
79 expected: "text @/list"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored Jan 22, 2010
80
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
81 - description: "Autolink list at the beginning"
82 text: "@username/list"
83 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 Jan 22, 2010
84
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
85 - description: "DO NOT Autolink list preceded by letter"
86 text: "meet@the/beach"
87 expected: "meet@the/beach"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored Jan 22, 2010
88
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
89 - description: "Autolink list preceded by puctuation"
90 text: "great.@username/list"
91 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 Jan 22, 2010
92
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
93 - description: "Autolink list followed by puctuation"
94 text: "@username/list&^$%^"
95 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 Jan 22, 2010
96
048e0a5 Correct the list linking tests to corrently reflect the legnth restri…
Matt Sanford authored Aug 19, 2010
97 - description: "Autolink list name over 25 characters (truncated to 25)"
98 text: "@username/list567890123456789012345A"
99 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 Jan 22, 2010
100
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored Aug 19, 2010
101 - description: "Autolink list that contains an _"
102 text: "text @username/list_name"
103 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list_name\">username/list_name</a>"
104
105 - description: "Autolink list that contains a -"
106 text: "text @username/list-name"
107 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list-name\">username/list-name</a>"
108
109 - description: "Autolink list that contains a number"
110 text: "text @username/list123"
111 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list123\">username/list123</a>"
112
113 - description: "DO NOT Autolink list starting with a number"
114 text: "@username/1list"
115 expected: "@<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>/1list"
116
4cb08c8 Add readme and sample files
Matt Sanford authored Jan 21, 2010
117 hashtags:
118 - description: "Autolink trailing hashtag"
119 text: "text #hashtag"
120 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 Jan 22, 2010
121
122 - description: "Autolink alphanumeric hashtag (letter-number-letter)"
123 text: "text #hash0tag"
124 expected: "text <a href=\"http://twitter.com/search?q=%23hash0tag\" title=\"#hash0tag\" class=\"tweet-url hashtag\">#hash0tag</a>"
125
126 - description: "Autolink alphanumeric hashtag (number-letter)"
127 text: "text #1tag"
128 expected: "text <a href=\"http://twitter.com/search?q=%231tag\" title=\"#1tag\" class=\"tweet-url hashtag\">#1tag</a>"
129
130 - description: "Autolink hashtag with underscore"
131 text: "text #hash_tag"
132 expected: "text <a href=\"http://twitter.com/search?q=%23hash_tag\" title=\"#hash_tag\" class=\"tweet-url hashtag\">#hash_tag</a>"
133
134 - description: "DO NOT Autolink all-numeric hashtags"
135 text: "text #1234"
136 expected: "text #1234"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored Jan 22, 2010
137
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
138 - description: "DO NOT Autolink hashtag preceded by a letter"
139 text: "text#hashtag"
140 expected: "text#hashtag"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored Jan 22, 2010
141
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
142 - description: "Autolink multiple hashtags"
143 text: "text #hashtag1 #hashtag2"
144 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 Jan 22, 2010
145
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored Jan 22, 2010
146 - description: "Autolink hashtag preceded by a period"
147 text: "text.#hashtag"
148 expected: "text.<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
149
150 - description: "DO NOT Autolink hashtag preceded by &"
151 text: "&#nbsp;"
152 expected: "&#nbsp;"
153
154 - description: "Autolink hashtag followed by ! (! not included)"
155 text: "text #hashtag!"
156 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>!"
157
158 - description: "Autolink hashtag followed by Japanese"
159 text: "text #hashtagの"
0297113 @keitaf modify test cases containing Japanese.
keitaf authored Jun 15, 2011
160 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 Jan 22, 2010
161
162 - description: "Autolink hashtag preceded by full-width space (U+3000)"
163 text: "text #hashtag"
164 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
165
166 - description: "Autolink hashtag followed by full-width space (U+3000)"
167 text: "#hashtag text"
168 expected: "<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a> text"
169
170 - description: "Autolink hashtag with full-width hash (U+FF03)"
171 text: "#hashtag"
172 expected: "<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
173
a828de4 Allow accented characters in hashtags
J.P. Cummins authored Apr 18, 2011
174 - description: "Autolink hashtag with accented character at the start"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored Jul 19, 2010
175 text: "#éhashtag"
75e504b Fixed incorrect hashtag character
J.P. Cummins authored Apr 18, 2011
176 expected: "<a href=\"http://twitter.com/search?q=%23éhashtag\" title=\"#éhashtag\" class=\"tweet-url hashtag\">#éhashtag</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored Jul 19, 2010
177
178 - description: "Autolink hashtag with accented character at the end"
179 text: "#hashtagé"
180 expected: "<a href=\"http://twitter.com/search?q=%23hashtagé\" title=\"#hashtagé\" class=\"tweet-url hashtag\">#hashtagé</a>"
181
182 - description: "Autolink hashtag with accented character in the middle"
183 text: "#hashétag"
184 expected: "<a href=\"http://twitter.com/search?q=%23hashétag\" title=\"#hashétag\" class=\"tweet-url hashtag\">#hashétag</a>"
185
3aca14d Update conformance for validation, extraction and autolinking of Russ…
Matt Sanford authored May 18, 2011
186 - description: "Autolink hashtags in Korean"
187 text: "What is #트위터 anyway?"
188 expected: "What is <a href=\"http://twitter.com/search?q=%23트위터\" title=\"#트위터\" class=\"tweet-url hashtag\">#트위터</a> anyway?"
189
190 - description: "Autolink hashtags in Russian"
191 text: "What is #ашок anyway?"
192 expected: "What is <a href=\"http://twitter.com/search?q=%23ашок\" title=\"#ашок\" class=\"tweet-url hashtag\">#ашок</a> anyway?"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored Jul 19, 2010
193
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
194 - description: "Autolink a katakana hashtag preceded by a space and followed by a space"
195 text: "カタカナ #カタカナ カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
196 expected: "カタカナ <a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
197
198 - description: "Autolink a katakana hashtag preceded by a space and followed by a bracket"
199 text: "カタカナ #カタカナ」カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
200 expected: "カタカナ <a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
201
202 - description: "Autolink a katakana hashtag preceded by a space and followed by a edge"
203 text: "カタカナ #カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
204 expected: "カタカナ <a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
205
206 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a space"
207 text: "カタカナ「#カタカナ カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
208 expected: "カタカナ「<a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
209
210 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a bracket"
211 text: "カタカナ「#カタカナ」カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
212 expected: "カタカナ「<a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
213
214 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a edge"
215 text: "カタカナ「#カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
216 expected: "カタカナ「<a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
217
218 - description: "Autolink a katakana hashtag preceded by a edge and followed by a space"
219 text: "#カタカナ カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
220 expected: "<a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
221
222 - description: "Autolink a katakana hashtag preceded by a edge and followed by a bracket"
223 text: "#カタカナ」カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
224 expected: "<a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
225
226 - description: "Autolink a katakana hashtag preceded by a edge and followed by a edge"
227 text: "#カタカナ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
228 expected: "<a href=\"http://twitter.com/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
229
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored Jul 8, 2011
230 - description: "Autolink a katakana hashtag with a voiced sounds mark followed by a space"
231 text: "#ハッシュタグ テスト"
232 expected: "<a href=\"http://twitter.com/search?q=%23ハッシュタグ\" title=\"#ハッシュタグ\" class=\"tweet-url hashtag\">#ハッシュタグ</a> テスト"
233
234 - description: "Autolink a katakana hashtag with a voiced sounds mark followed by numbers"
235 text: "#ハッシュタグ123"
236 expected: "<a href=\"http://twitter.com/search?q=%23ハッシュタグ123\" title=\"#ハッシュタグ123\" class=\"tweet-url hashtag\">#ハッシュタグ123</a>"
237
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
238 - description: "Autolink a kanji hashtag preceded by a space and followed by a space"
239 text: "漢字 #漢字 漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
240 expected: "漢字 <a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
241
242 - description: "Autolink a kanji hashtag preceded by a space and followed by a bracket"
243 text: "漢字 #漢字」漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
244 expected: "漢字 <a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
245
246 - description: "Autolink a kanji hashtag preceded by a space and followed by a edge"
247 text: "漢字 #漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
248 expected: "漢字 <a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
249
250 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a space"
251 text: "漢字「#漢字 漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
252 expected: "漢字「<a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
253
254 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a bracket"
255 text: "漢字「#漢字」漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
256 expected: "漢字「<a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
257
258 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a edge"
259 text: "漢字「#漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
260 expected: "漢字「<a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
261
262 - description: "Autolink a kanji hashtag preceded by a edge and followed by a space"
263 text: "#漢字 漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
264 expected: "<a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
265
266 - description: "Autolink a kanji hashtag preceded by a edge and followed by a bracket"
267 text: "#漢字」漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
268 expected: "<a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
269
270 - description: "Autolink a kanji hashtag preceded by a edge and followed by a edge"
271 text: "#漢字"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
272 expected: "<a href=\"http://twitter.com/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
273
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored Jul 8, 2011
274 - description: "Autolink a kanji hashtag preceded by an ideographic comma, followed by an ideographic period"
275 text: "これは、#大丈夫。"
b328b71 @mzsanford Make # into # in link title attributes
mzsanford authored Jul 8, 2011
276 expected: "これは、<a href=\"http://twitter.com/search?q=%23大丈夫\" title=\"#大丈夫\" class=\"tweet-url hashtag\">#大丈夫</a>。"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored Jul 8, 2011
277
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
278 - description: "Autolink a hiragana hashtag preceded by a space and followed by a space"
279 text: "ひらがな #ひらがな ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
280 expected: "ひらがな <a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
281
282 - description: "Autolink a hiragana hashtag preceded by a space and followed by a bracket"
283 text: "ひらがな #ひらがな」ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
284 expected: "ひらがな <a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
285
286 - description: "Autolink a hiragana hashtag preceded by a space and followed by a edge"
287 text: "ひらがな #ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
288 expected: "ひらがな <a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
289
290 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a space"
291 text: "ひらがな「#ひらがな ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
292 expected: "ひらがな「<a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
293
294 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a bracket"
295 text: "ひらがな「#ひらがな」ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
296 expected: "ひらがな「<a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
297
298 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a edge"
299 text: "ひらがな「#ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
300 expected: "ひらがな「<a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
301
302 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a space"
303 text: "#ひらがな ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
304 expected: "<a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
305
306 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a bracket"
307 text: "#ひらがな」ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
308 expected: "<a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
309
310 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a edge"
311 text: "#ひらがな"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
312 expected: "<a href=\"http://twitter.com/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored Jun 9, 2011
313
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored Jun 13, 2011
314 - description: "Autolink a Kanji/Katakana mix hashtag"
315 text: "日本語ハッシュタグ #日本語ハッシュタグ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
316 expected: "日本語ハッシュタグ <a href=\"http://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 Jun 13, 2011
317
318 - description: "DO NOT autolink a hashtag without a preceding space"
319 text: "日本語ハッシュタグ#日本語ハッシュタグ"
320 expected: "日本語ハッシュタグ#日本語ハッシュタグ"
321
322 - description: "DO NOT include a punctuation in a hashtag"
323 text: "#日本語ハッシュタグ。"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
324 expected: "<a href=\"http://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 Jun 13, 2011
325
326 - description: "Autolink a hashtag after a punctuation"
327 text: "日本語ハッシュタグ。#日本語ハッシュタグ"
caeb239 Fix YML format issue with some test cases
Matt Sanford authored Jun 13, 2011
328 expected: "日本語ハッシュタグ。<a href=\"http://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 Jun 13, 2011
329
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored Jan 22, 2010
330 urls:
62c6f38 Allow pipe character in URLs
Mark Christian authored Jan 7, 2011
331 - description: "Autolink URL with pipe character"
332 text: "text http://example.com/pipe|character?yes|pipe|character"
f9a6d72 @hoverbird Fix typo
hoverbird authored Jan 11, 2011
333 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 Jan 7, 2011
334
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored Jan 22, 2010
335 - description: "Autolink trailing url"
336 text: "text http://example.com"
337 expected: "text <a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored Jan 22, 2010
338
339 - description: "Autolink url in mid-text"
340 text: "text http://example.com more text"
341 expected: "text <a href=\"http://example.com\">http://example.com</a> more text"
342
343 - description: "Autolink url in Japanese text"
344 text: "いまなにしてるhttp://example.comいまなにしてる"
345 expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
346
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored Jul 8, 2010
347 - description: "Autolink url surrounded by parentheses does not capture them"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored Jan 22, 2010
348 text: "text (http://example.com)"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored Feb 2, 2010
349 expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored Feb 2, 2010
350
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored Jul 9, 2010
351 - 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 Jul 8, 2010
352 text: "text (http://example.com/test)"
353 expected: "text (<a href=\"http://example.com/test\">http://example.com/test</a>)"
354
355 - description: "Autolink url with embedded parentheses"
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored Jul 9, 2010
356 text: "text http://msdn.com/S(deadbeef)/page.htm"
ee1441d Mistyped test data
Matt Sanford authored Jul 9, 2010
357 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 Jul 9, 2010
358
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored Aug 10, 2010
359 - description: "Autolink url with balanced parens hiding XSS"
360 text: 'text http://foo.bar/("onclick="alert(1)")'
361 expected: 'text <a href="http://foo.bar/">http://foo.bar/</a>("onclick="alert(1)")'
362
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored Jul 9, 2010
363 - description: "Autolink url should NOT capture unbalanced parens"
364 text: "Parenthetically bad http://example.com/i_has_a_) thing"
365 expected: "Parenthetically bad <a href=\"http://example.com/i_has_a_\">http://example.com/i_has_a_</a>) thing"
366
85bb047 @hoverbird Remove conformance spec prohibiting URLs preceded by a colon
hoverbird authored Feb 2, 2010
367 - description: "Autolink url containing unicode characters"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored Feb 3, 2010
368 text: "I enjoy Macintosh Brand computers: http://✪df.ws/ejp"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored Feb 3, 2010
369 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 Feb 3, 2010
370
056022c Add a .co.jp autolink test
Matt Sanford authored Apr 26, 2010
371 - description: "Autolink url with .co. under TLD"
372 text: "test http://www.example.co.jp"
373 expected: "test <a href=\"http://www.example.co.jp\">http://www.example.co.jp</a>"
374
f6dafb5 Add more edge case testing for pinctuation in domains
Matt Sanford authored Feb 3, 2010
375 - description: "DO NOT Autolink url containing ! character in the domain"
376 text: "badly formatted http://foo!bar.com"
377 expected: "badly formatted http://foo!bar.com"
378
379 - description: "DO NOT Autolink url containing _ character in the domain"
380 text: "badly formatted http://foo_bar.com"
381 expected: "badly formatted http://foo_bar.com"
382
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored Feb 3, 2010
383 - description: "Autolink url preceded by :"
384 text: "text:http://example.com"
385 expected: "text:<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored Jan 22, 2010
386
387 - description: "Autolink url followed by ? (without it)"
388 text: "text http://example.com?"
389 expected: "text <a href=\"http://example.com\">http://example.com</a>?"
390
391 - description: "Autolink url followed by ! (without it)"
392 text: "text http://example.com!"
393 expected: "text <a href=\"http://example.com\">http://example.com</a>!"
394
395 - description: "Autolink url followed by , (without it)"
396 text: "text http://example.com,"
397 expected: "text <a href=\"http://example.com\">http://example.com</a>,"
398
75b0baf Add a conformance test for autolinking URLs with paths followed by a …
Matt Sanford authored Nov 24, 2010
399 - description: "Autolink url with path followed by a comma (wihout the comma)"
400 text: "In http://example.com/test, Douglas explains 42."
401 expected: "In <a href=\"http://example.com/test\">http://example.com/test</a>, Douglas explains 42."
402
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored Jan 22, 2010
403 - description: "Autolink url followed by . (without it)"
404 text: "text http://example.com."
405 expected: "text <a href=\"http://example.com\">http://example.com</a>."
406
407 - description: "Autolink url followed by : (without it)"
408 text: "text http://example.com:"
409 expected: "text <a href=\"http://example.com\">http://example.com</a>:"
410
411 - description: "Autolink url followed by ; (without it)"
412 text: "text http://example.com;"
413 expected: "text <a href=\"http://example.com\">http://example.com</a>;"
414
415 - description: "Autolink url followed by ] (without it)"
416 text: "text http://example.com]"
417 expected: "text <a href=\"http://example.com\">http://example.com</a>]"
418
419 - description: "Autolink url followed by ) (without it)"
420 text: "text http://example.com)"
421 expected: "text <a href=\"http://example.com\">http://example.com</a>)"
422
423 - description: "Autolink url followed by } (without it)"
424 text: "text http://example.com}"
425 expected: "text <a href=\"http://example.com\">http://example.com</a>}"
426
427 - description: "Autolink url followed by = (without it)"
428 text: "text http://example.com="
429 expected: "text <a href=\"http://example.com\">http://example.com</a>="
430
431 - description: "Autolink url followed by ' (without it)"
432 text: "text http://example.com'"
433 expected: "text <a href=\"http://example.com\">http://example.com</a>'"
434
435 - description: "DO NOT Autolink url preceded by /"
436 text: "text /http://example.com"
437 expected: "text /http://example.com"
438
439 - description: "DO NOT Autolink url preceded by !"
440 text: "text !http://example.com"
441 expected: "text !http://example.com"
442
443 - description: "DO NOT Autolink url preceded by ="
444 text: "text =http://example.com"
445 expected: "text =http://example.com"
446
335add9 @bcherry don't allow @ as a preceding character for URLs
bcherry authored Oct 20, 2010
447 - description: "DO NOT Autolink url preceded by @"
448 text: "@http://example.com"
449 expected: "@http://example.com"
450
451 - description: "DO NOT Autolink domain in email address"
452 text: "foo@bar.com"
453 expected: "foo@bar.com"
454
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored Jan 22, 2010
455 - description: "Autolink url embedded in link tag"
456 text: "<link rel='true'>http://example.com</link>"
457 expected: "<link rel='true'><a href=\"http://example.com\">http://example.com</a></link>"
458
459 - description: "Autolink multiple urls"
460 text: "http://example.com https://sslexample.com http://sub.example.com"
4c437bc Remove invalid test case
Matt Sanford authored Jan 22, 2010
461 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 Jan 22, 2010
462
463 - description: "Autolink url with long TLD"
464 text: "http://example.mobi/path"
465 expected: "<a href=\"http://example.mobi/path\">http://example.mobi/path</a>"
466
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
467 - description: "Autolink url containing ending with #value (not as url + hashtag)"
468 text: "http://foo.com/?#foo"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored Dec 2, 2010
469 expected: "<a href=\"http://foo.com/?#foo\">http://foo.com/?#foo</a>"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
470
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
471 - description: "DO NOT Autolink url without protocol (with www)"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
472 text: "www.example.biz"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
473 expected: "www.example.biz"
8e920e6 Add case sensitivity test for link without protocol
Matt Sanford authored Jan 27, 2010
474
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
475 - description: "DO NOT Autolink url without protocol (with WWW)"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
476 text: "WWW.EXAMPLE.BIZ"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
477 expected: "WWW.EXAMPLE.BIZ"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
478
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
479 - description: "DO NOT Autolink URL without protocol and without www (ending in .com)"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
480 text: "foo.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
481 expected: "foo.com"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
482
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
483 - description: "DO NOT Autolink URL without protocol and without www (ending in .org)"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
484 text: "foo.org"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
485 expected: "foo.org"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
486
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
487 - description: "DO NOT Autolink URL without protocol and without www (ending in .net)"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
488 text: "foo.net"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
489 expected: "foo.net"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
490
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
491 - description: "DO NOT Autolink URL without protocol and without www (ending in .gov)"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
492 text: "foo.gov"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
493 expected: "foo.gov"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
494
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
495 - description: "DO NOT Autolink URL without protocol and without www (ending in .edu)"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
496 text: "foo.edu"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
497 expected: "foo.edu"
49f08f5 @bcherry new conformance behavior
bcherry authored Oct 4, 2010
498
499 - description: "Autolink URL without protocol and without www not ending in /.(edu|com|gov|org|net)/"
500 text: "foo.it twitter.co.jp foo.commerce foo.nettastic foo.us foo.co.uk"
501 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 Jan 29, 2010
502
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
503 - 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 Mar 5, 2010
504 text: "http://foo.com AND https://bar.com AND www.foobar.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
505 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 Mar 6, 2010
506
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
507 - 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 Mar 4, 2010
508 text: "See http://example.com example.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
509 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 Mar 5, 2010
510
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored Feb 23, 2010
511 - description: "Autolink url that includes @-sign and numeric dir under it"
512 text: "http://www.flickr.com/photos/29674651@N00/4382024406"
513 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a>"
514
515 - description: "Autolink url that includes @-sign and non-numeric dir under it"
516 text: "http://www.flickr.com/photos/29674651@N00/foobar"
e119e95 Correct the flickr-ish path info
Matt Sanford authored Mar 4, 2010
517 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 Feb 23, 2010
518
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored Mar 6, 2010
519 - description: "Autolink URL with only a domain followed by a period doesn't swallow the period."
520 text: "I think it's proper to end sentences with a period http://tell.me. Even when they contain a URL."
521 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 Mar 4, 2010
522
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored Mar 6, 2010
523 - 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 Mar 5, 2010
524 text: "I think it's proper to end sentences with a period http://tell.me/why. Even when they contain a URL."
525 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."
526
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored Mar 6, 2010
527 - description: "Autolink URL with a query followed by a period doesn't swallow the period."
528 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."
529 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."
530
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sing…
hoverbird authored Apr 15, 2010
531 - description: "Autolink URL with a hyphen in the domain name"
532 text: "Czech out sweet deals at http://mrs.domain-dash.biz ok?"
533 expected: "Czech out sweet deals at <a href=\"http://mrs.domain-dash.biz\">http://mrs.domain-dash.biz</a> ok?"
534
64578fb Add punycode test case
Matt Sanford authored Jun 9, 2011
535 - description: "Autolink an IDN (punycode) domain and TLD"
536 text: "See also: http://xn--80abe5aohbnkjb.xn--p1ai/"
537 expected: "See also: <a href=\"http://xn--80abe5aohbnkjb.xn--p1ai/\">http://xn--80abe5aohbnkjb.xn--p1ai/</a>"
538
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored Mar 11, 2010
539 - description: "Autolink URL should NOT autolink www...foo"
540 text: "Is www...foo a valid URL?"
541 expected: "Is www...foo a valid URL?"
542
543 - description: "Autolink URL should NOT autolink www.-foo.com"
544 text: "Is www.-foo.com a valid URL?"
545 expected: "Is www.-foo.com a valid URL?"
546
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
547 - 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 Mar 11, 2010
548 text: "Is www.foo-bar.com a valid URL?"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
549 expected: "Is www.foo-bar.com a valid URL?"
550
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to…
Matt Sanford authored Jan 6, 2011
551 - description: "Autolink URL should autolink a domain with a valid dash and a protocol"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored Dec 2, 2010
552 text: "Is http://www.foo-bar.com a valid URL?"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored Dec 2, 2010
553 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 Jul 9, 2010
554
7be56b7 Add a conformance test for search URLs (already passes. Toubleshootin…
Matt Sanford authored Mar 26, 2010
555 - description: "Autolink URL should link search urls (with &lang=, not &lang;)"
556 text: "Check out http://search.twitter.com/search?q=avro&lang=en"
1d0ed15 @bcherry added expected encoding for & in url
bcherry authored Oct 4, 2010
557 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 Mar 26, 2010
558
48c4088 Add a test case for URLs with very long paths
Matt Sanford authored Aug 19, 2010
559 - description: "Autolink URL should link urls with very long paths"
560 text: "Check out http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</a>"
c5ef022 Add an addition XSS test
Matt Sanford authored Sep 21, 2010
562
563 - description: "Autolink URL should HTML escape the URL"
564 text: "example: http://twitter.com/otm_m@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
565 expected: "example: <a href=\"http://twitter.com/otm_m\">http://twitter.com/otm_m</a>@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
566
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to…
Matt Sanford authored Jan 6, 2011
567 - description: "Autolink URL should autolink a URL with a - or + at the end of the path"
568 text: "Go to http://example.com/a+ or http://example.com/a-"
569 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 Nov 1, 2010
570
7ff3017 Add more tests around the v1.3.1 conformance fixes
Matt Sanford authored Jan 6, 2011
571 - description: "Autolink URL should autolink a URL with a - or + at the end of the path and query parameters"
572 text: "Go to http://example.com/a+?this=that or http://example.com/a-?this=that"
573 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>"
574
575 - description: "Autolink URL should autolink URLs with longer paths ending in -"
576 text: "Go to http://example.com/view/slug-url-?foo=bar"
577 expected: "Go to <a href=\"http://example.com/view/slug-url-?foo=bar\">http://example.com/view/slug-url-?foo=bar</a>"
578
aaeb7c2 Add extraction and autolink tests for domains with spaces
Matt Sanford authored May 17, 2011
579 - description: "Autolink URL should NOT link URLs with domains beginning in a space"
580 text: "@user Try http:// example.com/path"
581 expected: "@user Try http:// example.com/path"
582
3602846 Add non-breaking space (U+00A0) tests
Matt Sanford authored May 18, 2011
583 - description: "Autolink URL should NOT link URLs with domains beginning in a non-breaking space (U+00A0)"
584 text: "@user Try http:// example.com/path"
585 expected: "@user Try http:// example.com/path"
586
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored Jan 29, 2010
587 all:
6741760 Make the auto link all test more realistic
Matt Sanford authored Mar 4, 2010
588 - description: "Autolink all does not break on URL with @"
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sing…
hoverbird authored Apr 15, 2010
589 text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
590 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 Jan 29, 2010
591
1b2c3be Add autolink test for URL with & but no ?
Matt Sanford authored Mar 9, 2010
592 - description: "Autolink all does not allow & without ?"
593 text: "Check out: http://example.com/test&@chasesechrist"
594 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 Jul 12, 2010
595
c5ef022 Add an addition XSS test
Matt Sanford authored Sep 21, 2010
596 - description: "Correctly handles URL follower directly by @user"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored Jul 13, 2010
597 text: "See: http://example.com/@user"
598 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 Aug 24, 2010
599
13926c1 @bcherry added some more conformance tests for XSS stuff
bcherry authored Sep 28, 2010
600 - description: "Correctly handles URL with an @user followed by trailing /"
601 text: "See: http://example.com/@user/"
602 expected: "See: <a href=\"http://example.com/@user/\">http://example.com/@user/</a>"
603
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored Aug 24, 2010
604 - description: "Does not allow an XSS after an @"
605 text: "See: http://x.xx/@\"style=\"color:pink\"onmouseover=alert(1)//"
606 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.