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
732f941e
Commit
732f941e
authored
Feb 28, 2013
by
ichim-david
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed first jasmine test for visibility of xmpp-roster
parent
fe0034f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/RosterSpec.js
spec/RosterSpec.js
+3
-3
No files found.
spec/RosterSpec.js
View file @
732f941e
...
@@ -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