Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (44 sloc) 2.445 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"
42 expected: "@username9012345678901"
4cb08c8 Add readme and sample files
Matt Sanford authored
43 lists:
44 - description: "Autolink trailing list"
45 text: "text @username/list"
46 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list\">username/list</a>"
47 urls:
48 - description: "Autolink trailing url"
49 text: "text http://example.com"
50 expected: "text <a href=\"http://example.com\">http://example.com</a>"
51 hashtags:
52 - description: "Autolink trailing hashtag"
53 text: "text #hashtag"
54 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
Something went wrong with that request. Please try again.