Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
da48ebdb
Commit
da48ebdb
authored
Jul 06, 2020
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emoji Spec Failure fixed
parent
b70b5714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/frontend/behaviors/gl_emoji_spec.js
spec/frontend/behaviors/gl_emoji_spec.js
+8
-8
No files found.
spec/frontend/behaviors/gl_emoji_spec.js
View file @
da48ebdb
...
...
@@ -42,8 +42,8 @@ describe('gl_emoji', () => {
[
'
bomb emoji just with name attribute
'
,
'
<gl-emoji data-name="bomb"></gl-emoji>
'
,
'
<gl-emoji data-name="bomb" data-uni="6.0" title="bomb">💣</gl-emoji>
'
,
'
<gl-emoji data-name="bomb" data-uni="6.0" title="bomb"><img class="emoji" title=":bomb:" alt=":bomb:" src="/-/emojis/1/bomb.png" width="20" height="20" align="absmiddle"></gl-emoji>
'
,
'
<gl-emoji data-name="bomb" data-uni
code-version
="6.0" title="bomb">💣</gl-emoji>
'
,
'
<gl-emoji data-name="bomb" data-uni
code-version
="6.0" title="bomb"><img class="emoji" title=":bomb:" alt=":bomb:" src="/-/emojis/1/bomb.png" width="20" height="20" align="absmiddle"></gl-emoji>
'
,
],
[
'
bomb emoji with name attribute and unicode version
'
,
...
...
@@ -54,20 +54,20 @@ describe('gl_emoji', () => {
[
'
bomb emoji with sprite fallback
'
,
'
<gl-emoji data-fallback-sprite-class="emoji-bomb" data-name="bomb"></gl-emoji>
'
,
'
<gl-emoji data-fallback-sprite-class="emoji-bomb" data-name="bomb" data-uni="6.0" title="bomb">💣</gl-emoji>
'
,
'
<gl-emoji data-fallback-sprite-class="emoji-bomb" data-name="bomb" data-uni="6.0" title="bomb" class="emoji-icon emoji-bomb">💣</gl-emoji>
'
,
'
<gl-emoji data-fallback-sprite-class="emoji-bomb" data-name="bomb" data-uni
code-version
="6.0" title="bomb">💣</gl-emoji>
'
,
'
<gl-emoji data-fallback-sprite-class="emoji-bomb" data-name="bomb" data-uni
code-version
="6.0" title="bomb" class="emoji-icon emoji-bomb">💣</gl-emoji>
'
,
],
[
'
bomb emoji with image fallback
'
,
'
<gl-emoji data-fallback-src="/bomb.png" data-name="bomb"></gl-emoji>
'
,
'
<gl-emoji data-fallback-src="/bomb.png" data-name="bomb" data-uni="6.0" title="bomb">💣</gl-emoji>
'
,
'
<gl-emoji data-fallback-src="/bomb.png" data-name="bomb" data-uni="6.0" title="bomb"><img class="emoji" title=":bomb:" alt=":bomb:" src="/bomb.png" width="20" height="20" align="absmiddle"></gl-emoji>
'
,
'
<gl-emoji data-fallback-src="/bomb.png" data-name="bomb" data-uni
code-version
="6.0" title="bomb">💣</gl-emoji>
'
,
'
<gl-emoji data-fallback-src="/bomb.png" data-name="bomb" data-uni
code-version
="6.0" title="bomb"><img class="emoji" title=":bomb:" alt=":bomb:" src="/bomb.png" width="20" height="20" align="absmiddle"></gl-emoji>
'
,
],
[
'
invalid emoji
'
,
'
<gl-emoji data-name="invalid_emoji"></gl-emoji>
'
,
'
<gl-emoji data-name="grey_question" data-uni="6.0" title="white question mark ornament">❔</gl-emoji>
'
,
'
<gl-emoji data-name="grey_question" data-uni="6.0" title="white question mark ornament"><img class="emoji" title=":grey_question:" alt=":grey_question:" src="/-/emojis/1/grey_question.png" width="20" height="20" align="absmiddle"></gl-emoji>
'
,
'
<gl-emoji data-name="grey_question" data-uni
code-version
="6.0" title="white question mark ornament">❔</gl-emoji>
'
,
'
<gl-emoji data-name="grey_question" data-uni
code-version
="6.0" title="white question mark ornament"><img class="emoji" title=":grey_question:" alt=":grey_question:" src="/-/emojis/1/grey_question.png" width="20" height="20" align="absmiddle"></gl-emoji>
'
,
],
])(
'
%s
'
,
(
name
,
markup
,
withEmojiSupport
,
withoutEmojiSupport
)
=>
{
it
(
`renders correctly with emoji support`
,
async
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment