tests.md 3.1 KB

Unicode Conversion

# single character
🐌

# character mid sentence
The 🦄 is Emoji One's official mascot.

# character mid sentence with a comma
The 🦄, is Emoji One's official mascot.

# character at start of sentence
🐌 mail.

# character at start of sentence with apostrophe
🐌's are cool!

# character at end of sentence
Emoji One's official mascot is 🦄.

# character at end of sentence with alternate puncuation
Emoji One's official mascot is 🦄!

# character at end of sentence with preceeding colon
Emoji One's official mascot: 🦄

# character inside of IMG tag
The <img class="emojione" alt="🦄" title=":unicorn:" src="https://cdn.jsdelivr.net/emojione/assets/png/1F984.png" /> is Emoji One's official mascot.

# characters inside of OBJECT tag
The <object class="emojione" data="https://cdn.jsdelivr.net/emojione/assets/svg/1F40C.svg" type="image/svg+xml" standby="🐌">🐌</object> is Emoji One's official mascot.

Shortname Conversion

# single shortname
:snail:

# shortname mid sentence
The :unicorn: is Emoji One's official mascot.

# shortname mid sentence with a comma
The :unicorn:, is Emoji One's official mascot.

# shortname at start of sentence
:snail: mail.

# shortname at start of sentence with apostrophe
:snail:'s are cool!

# shortname at end of sentence
Emoji One's official mascot is :unicorn:.

# shortname at end of sentence with alternate puncuation
Emoji One's official mascot is :unicorn:!

# shortname at end of sentence with preceeding colon
Emoji One's official mascot: :unicorn:

# shortname inside of IMG tag
The <img class="emojione" alt=":unicorn:" title=":unicorn:" src="https://cdn.jsdelivr.net/emojione/assets/png/1F984.png" /> is Emoji One's official mascot.

# shortnames inside of OBJECT tag
The <object class="emojione" data="//cdn.jsdelivr.net/emojione/assets/svg/1F40C.svg" type="image/svg+xml" standby=":snail:">:snail:</object> is Emoji One's official mascot.

ASCII Conversion

# single smiley
:D

# single smiley with incorrect case (shouldn't convert)
:d

# multiple smileys
;) :p :*

# smiley to start a sentence
:\ is our confused smiley.

# smiley to end a sentence
Our smiley to represent joy is :')

# smiley to end a sentence with puncuation
The reverse is the joy smiley is the cry smiley :'(.

# smiley to end a sentence with preceeding punctuation
This is the "flushed" smiley: :$.

# smiley inside of an IMG tag  (shouldn't convert anything inside of the tag)
Smile <img class="emojione" alt=":)" title=":smile:" src="https://cdn.jsdelivr.net/emojione/assets/png/1F604.png" /> because it's going to be a good day.

# smiley inside of OBJECT tag  (shouldn't convert anything inside of the tag)
Smile <object class="emojione" data="https://cdn.jsdelivr.net/emojione/assets/svg/1F604.svg" type="image/svg+xml" standby=":)">:)</object> because it's going to be a good day.

# typical username password fail  (shouldn't convert the user:pass, but should convert the last :p)
Please log-in with user:pass as your credentials :P.

# shouldn't replace an ascii smiley in a URL (shouldn't replace :/)
Check out http://www.emojione.com