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
7b4fe902
Commit
7b4fe902
authored
Mar 21, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the live mockup again (and move to mockup.html)
parent
2d846961
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
+23
-9
mockup.html
mockup.html
+2
-2
mockup/main.js
mockup/main.js
+0
-1
mockup/mockup.js
mockup/mockup.js
+21
-6
No files found.
mockup
/index
.html
→
mockup.html
View file @
7b4fe902
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../components/jasmine/src/html/jasmine.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../components/jasmine/src/html/jasmine.css"
>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"../css/theme.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"../css/theme.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"../css/converse.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"../css/converse.css"
/>
<script
src=
"
../main
.js"
></script>
<script
src=
"
converse
.js"
></script>
<script
data-main=
"m
ain"
src=
"../
components/requirejs/require.js"
></script>
<script
data-main=
"m
ockup/main"
src=
"
components/requirejs/require.js"
></script>
</head>
</head>
<body>
<body>
...
...
mockup/main.js
View file @
7b4fe902
// Extra test dependencies
// Extra test dependencies
config
.
baseUrl
=
'
../
'
;
config
.
paths
.
mock
=
"
tests/mock
"
;
config
.
paths
.
mock
=
"
tests/mock
"
;
config
.
paths
.
test_utils
=
"
tests/utils
"
;
config
.
paths
.
test_utils
=
"
tests/utils
"
;
config
.
paths
.
jasmine
=
"
components/jasmine/lib/jasmine-core/jasmine
"
;
config
.
paths
.
jasmine
=
"
components/jasmine/lib/jasmine-core/jasmine
"
;
...
...
mockup/mockup.js
View file @
7b4fe902
...
@@ -38,7 +38,27 @@
...
@@ -38,7 +38,27 @@
view
.
onChatRoomMessage
(
message
.
nodeTree
);
view
.
onChatRoomMessage
(
message
.
nodeTree
);
});
});
it
(
"
Show a private chat box
"
,
function
()
{
it
(
"
Show the control box
"
,
function
()
{
test_utils
.
openControlBox
();
test_utils
.
openContactsPanel
();
});
it
(
"
Show a headlines box
"
,
function
()
{
converse
.
connection
.
_dataRecv
(
test_utils
.
createRequest
(
$msg
({
'
type
'
:
'
headline
'
,
'
from
'
:
'
notify.example.com
'
,
'
to
'
:
'
dummy@localhost
'
,
'
xml:lang
'
:
'
en
'
})
.
c
(
'
subject
'
).
t
(
'
MAIL
'
).
up
()
.
c
(
'
body
'
).
t
(
'
You got mail.
'
).
up
()
)
);
});
xit
(
"
Show a private chat box
"
,
function
()
{
var
contact_jid
=
mock
.
cur_names
[
2
].
replace
(
/ /g
,
'
.
'
).
toLowerCase
()
+
'
@localhost
'
;
var
contact_jid
=
mock
.
cur_names
[
2
].
replace
(
/ /g
,
'
.
'
).
toLowerCase
()
+
'
@localhost
'
;
var
chatbox
=
test_utils
.
openChatBoxFor
(
contact_jid
);
var
chatbox
=
test_utils
.
openChatBoxFor
(
contact_jid
);
var
view
=
converse
.
chatboxviews
.
get
(
contact_jid
);
var
view
=
converse
.
chatboxviews
.
get
(
contact_jid
);
...
@@ -54,11 +74,6 @@
...
@@ -54,11 +74,6 @@
.
c
(
'
active
'
,
{
'
xmlns
'
:
'
http://jabber.org/protocol/chatstates
'
}).
tree
();
.
c
(
'
active
'
,
{
'
xmlns
'
:
'
http://jabber.org/protocol/chatstates
'
}).
tree
();
converse
.
chatboxes
.
onMessage
(
msg
);
converse
.
chatboxes
.
onMessage
(
msg
);
});
});
it
(
"
Show the control box
"
,
function
()
{
test_utils
.
openControlBox
();
test_utils
.
openContactsPanel
();
});
});
});
},
window
,
mock
,
test_utils
));
},
window
,
mock
,
test_utils
));
}));
}));
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