Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
0
Merge Requests
0
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
converse.js
Commits
41a42fe2
Commit
41a42fe2
authored
Aug 16, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for mentions with spaces in them.
Also remove Converse from fullscreen background
parent
1511eb13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
fullscreen.html
fullscreen.html
+0
-5
spec/messages.js
spec/messages.js
+9
-2
No files found.
fullscreen.html
View file @
41a42fe2
...
@@ -12,11 +12,6 @@
...
@@ -12,11 +12,6 @@
<script
src=
"dist/converse.js"
></script>
<script
src=
"dist/converse.js"
></script>
</head>
</head>
<body
class=
"reset"
>
<body
class=
"reset"
>
<div
class=
"content"
>
<div
class=
"inner-content"
>
<h1
class=
"brand-heading"
><i
class=
"icon-conversejs"
></i>
Converse
</h1>
</div>
</div>
<script>
<script>
/*
/*
@licstart
@licstart
...
...
spec/messages.js
View file @
41a42fe2
...
@@ -2145,7 +2145,7 @@
...
@@ -2145,7 +2145,7 @@
test_utils
.
openAndEnterChatRoom
(
_converse
,
'
lounge
'
,
'
localhost
'
,
'
tom
'
)
test_utils
.
openAndEnterChatRoom
(
_converse
,
'
lounge
'
,
'
localhost
'
,
'
tom
'
)
.
then
(()
=>
{
.
then
(()
=>
{
const
view
=
_converse
.
chatboxviews
.
get
(
'
lounge@localhost
'
);
const
view
=
_converse
.
chatboxviews
.
get
(
'
lounge@localhost
'
);
[
'
z3r0
'
,
'
mr.robot
'
,
'
gibson
'
,
'
sw0rdf1sh
'
].
forEach
((
nick
)
=>
{
[
'
z3r0
'
,
'
mr.robot
'
,
'
gibson
'
,
'
sw0rdf1sh
'
,
'
Link Mauve
'
].
forEach
((
nick
)
=>
{
_converse
.
connection
.
_dataRecv
(
test_utils
.
createRequest
(
_converse
.
connection
.
_dataRecv
(
test_utils
.
createRequest
(
$pres
({
$pres
({
'
to
'
:
'
tom@localhost/resource
'
,
'
to
'
:
'
tom@localhost/resource
'
,
...
@@ -2154,7 +2154,7 @@
...
@@ -2154,7 +2154,7 @@
.
c
(
'
x
'
,
{
xmlns
:
Strophe
.
NS
.
MUC_USER
})
.
c
(
'
x
'
,
{
xmlns
:
Strophe
.
NS
.
MUC_USER
})
.
c
(
'
item
'
,
{
.
c
(
'
item
'
,
{
'
affiliation
'
:
'
none
'
,
'
affiliation
'
:
'
none
'
,
'
jid
'
:
`
${
nick
}
@localhost/resource`
,
'
jid
'
:
`
${
nick
.
replace
(
/
\s
/g
,
'
-
'
)
}
@localhost/resource`
,
'
role
'
:
'
participant
'
'
role
'
:
'
participant
'
})));
})));
});
});
...
@@ -2190,6 +2190,13 @@
...
@@ -2190,6 +2190,13 @@
expect
(
references
.
length
).
toBe
(
1
);
expect
(
references
.
length
).
toBe
(
1
);
expect
(
JSON
.
stringify
(
references
))
expect
(
JSON
.
stringify
(
references
))
.
toBe
(
'
[{"begin":0,"end":6,"value":"gibson","type":"mention","uri":"xmpp:gibson@localhost"}]
'
);
.
toBe
(
'
[{"begin":0,"end":6,"value":"gibson","type":"mention","uri":"xmpp:gibson@localhost"}]
'
);
[
text
,
references
]
=
view
.
model
.
parseTextForReferences
(
'
hi @Link Mauve how are you?
'
)
expect
(
text
).
toBe
(
'
hi Link Mauve how are you?
'
);
expect
(
references
.
length
).
toBe
(
1
);
expect
(
JSON
.
stringify
(
references
))
.
toBe
(
'
[{"begin":3,"end":13,"value":"Link Mauve","type":"mention","uri":"xmpp:Link-Mauve@localhost"}]
'
);
done
();
done
();
return
;
return
;
});
});
...
...
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