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
d7cb92c7
Commit
d7cb92c7
authored
Feb 28, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from ichim-david/master
Optimize actions done in RosterView.
parents
e6c5a6c5
732f941e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
64 deletions
+105
-64
converse.js
converse.js
+102
-61
spec/RosterSpec.js
spec/RosterSpec.js
+3
-3
No files found.
converse.js
View file @
d7cb92c7
This diff is collapsed.
Click to expand it.
spec/RosterSpec.js
View file @
d7cb92c7
...
@@ -31,12 +31,12 @@
...
@@ -31,12 +31,12 @@
xmppchat
.
rosterview
=
new
xmppchat
.
RosterView
({
'
model
'
:
xmppchat
.
roster
});
xmppchat
.
rosterview
=
new
xmppchat
.
RosterView
({
'
model
'
:
xmppchat
.
roster
});
// stub
// stub
xmppchat
.
chatboxesview
=
{
openChat
:
function
()
{}
};
xmppchat
.
chatboxesview
=
{
openChat
:
function
()
{}
};
// Hack to make sure there is an element.
xmppchat
.
rosterview
.
$el
=
$
(
'
<dl id="xmppchat-roster"></dl>
'
);
xmppchat
.
rosterview
.
render
();
xmppchat
.
rosterview
.
render
();
// by default the dts are hidden from css class and only later they will be hidden
// by jQuery therefore for the first check we will see if visible instead of none
it
(
"
should hide the requesting contacts heading if there aren't any
"
,
function
()
{
it
(
"
should hide the requesting contacts heading if there aren't any
"
,
function
()
{
expect
(
xmppchat
.
rosterview
.
$el
.
find
(
'
dt#xmpp-contact-requests
'
).
css
(
'
display
'
)).
toEqual
(
'
none
'
);
expect
(
xmppchat
.
rosterview
.
$el
.
find
(
'
dt#xmpp-contact-requests
'
).
is
(
'
:visible
'
)).
toEqual
(
false
);
});
});
it
(
"
should be able to add requesting contacts, and they should be sorted alphabetically
"
,
function
()
{
it
(
"
should be able to add requesting contacts, and they should be sorted alphabetically
"
,
function
()
{
...
...
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