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
33d85cd9
Commit
33d85cd9
authored
May 21, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests after adding nick input field
parent
7f4f3d7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
spec/ChatRoomSpec.js
spec/ChatRoomSpec.js
+4
-0
spec/MainSpec.js
spec/MainSpec.js
+2
-0
No files found.
spec/ChatRoomSpec.js
View file @
33d85cd9
...
@@ -22,8 +22,10 @@
...
@@ -22,8 +22,10 @@
}
}
var
roomspanel
=
this
.
chatboxesview
.
views
.
controlbox
.
roomspanel
;
var
roomspanel
=
this
.
chatboxesview
.
views
.
controlbox
.
roomspanel
;
var
$input
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-name
'
);
var
$input
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-name
'
);
var
$nick
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-nick
'
);
var
$server
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-server
'
);
var
$server
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-server
'
);
$input
.
val
(
'
lounge
'
);
$input
.
val
(
'
lounge
'
);
$nick
.
val
(
'
dummy
'
);
$server
.
val
(
'
muc.localhost
'
);
$server
.
val
(
'
muc.localhost
'
);
roomspanel
.
$el
.
find
(
'
form
'
).
submit
();
roomspanel
.
$el
.
find
(
'
form
'
).
submit
();
$
(
'
.toggle-online-users
'
).
click
();
$
(
'
.toggle-online-users
'
).
click
();
...
@@ -110,8 +112,10 @@
...
@@ -110,8 +112,10 @@
beforeEach
(
$
.
proxy
(
function
()
{
beforeEach
(
$
.
proxy
(
function
()
{
var
roomspanel
=
this
.
chatboxesview
.
views
.
controlbox
.
roomspanel
;
var
roomspanel
=
this
.
chatboxesview
.
views
.
controlbox
.
roomspanel
;
var
$input
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-name
'
);
var
$input
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-name
'
);
var
$nick
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-nick
'
);
var
$server
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-server
'
);
var
$server
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-server
'
);
$input
.
val
(
'
problematic
'
);
$input
.
val
(
'
problematic
'
);
$nick
.
val
(
'
dummy
'
);
$server
.
val
(
'
muc.localhost
'
);
$server
.
val
(
'
muc.localhost
'
);
roomspanel
.
$el
.
find
(
'
form
'
).
submit
();
roomspanel
.
$el
.
find
(
'
form
'
).
submit
();
},
converse
));
},
converse
));
...
...
spec/MainSpec.js
View file @
33d85cd9
...
@@ -621,6 +621,7 @@
...
@@ -621,6 +621,7 @@
it
(
"
contains a form through which a new chatroom can be created
"
,
$
.
proxy
(
function
()
{
it
(
"
contains a form through which a new chatroom can be created
"
,
$
.
proxy
(
function
()
{
var
roomspanel
=
this
.
chatboxesview
.
views
.
controlbox
.
roomspanel
;
var
roomspanel
=
this
.
chatboxesview
.
views
.
controlbox
.
roomspanel
;
var
$input
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-name
'
);
var
$input
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-name
'
);
var
$nick
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-nick
'
);
var
$server
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-server
'
);
var
$server
=
roomspanel
.
$el
.
find
(
'
input.new-chatroom-server
'
);
expect
(
$input
.
length
).
toBe
(
1
);
expect
(
$input
.
length
).
toBe
(
1
);
expect
(
$server
.
length
).
toBe
(
1
);
expect
(
$server
.
length
).
toBe
(
1
);
...
@@ -629,6 +630,7 @@
...
@@ -629,6 +630,7 @@
roomspanel
.
delegateEvents
();
// We need to rebind all events otherwise our spy won't be called
roomspanel
.
delegateEvents
();
// We need to rebind all events otherwise our spy won't be called
runs
(
function
()
{
runs
(
function
()
{
$input
.
val
(
'
Lounge
'
);
$input
.
val
(
'
Lounge
'
);
$nick
.
val
(
'
dummy
'
);
$server
.
val
(
'
muc.localhost
'
);
$server
.
val
(
'
muc.localhost
'
);
});
});
waits
(
'
250
'
);
waits
(
'
250
'
);
...
...
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