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
de07b6a5
Commit
de07b6a5
authored
Nov 30, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need for two AMD-load cycles.
parent
6abd805b
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
80 additions
and
90 deletions
+80
-90
package.json
package.json
+1
-1
spec/bookmarks.js
spec/bookmarks.js
+2
-1
spec/chatbox.js
spec/chatbox.js
+2
-1
spec/chatroom.js
spec/chatroom.js
+2
-2
spec/controlbox.js
spec/controlbox.js
+2
-2
spec/converse.js
spec/converse.js
+3
-6
spec/disco.js
spec/disco.js
+3
-6
spec/eventemitter.js
spec/eventemitter.js
+2
-2
spec/headline.js
spec/headline.js
+2
-1
spec/mam.js
spec/mam.js
+2
-2
spec/minchats.js
spec/minchats.js
+2
-2
spec/notification.js
spec/notification.js
+2
-2
spec/otr.js
spec/otr.js
+2
-2
spec/ping.js
spec/ping.js
+2
-2
spec/profiling.js
spec/profiling.js
+2
-2
spec/protocol.js
spec/protocol.js
+3
-6
spec/register.js
spec/register.js
+2
-2
spec/xmppstatus.js
spec/xmppstatus.js
+2
-2
tests/main.js
tests/main.js
+42
-46
No files found.
package.json
View file @
de07b6a5
...
...
@@ -48,7 +48,7 @@
"
jquery
"
:
"
2.2.3
"
,
"
jquery-easing
"
:
"
0.0.1
"
,
"
jquery.browser
"
:
"
>=0.1.0
"
,
"
jshint
"
:
"
^2.
8.0
"
,
"
jshint
"
:
"
^2.
9.4
"
,
"
moment
"
:
"
~2.13.0
"
,
"
otr
"
:
"
0.2.16
"
,
"
phantom-jasmine
"
:
"
0.1.8
"
,
...
...
spec/bookmarks.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
jquery
"
,
"
converse-api
"
,
"
underscore
"
,
"
utils
"
,
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
$
,
_
,
utils
,
mock
,
test_utils
)
{
}
(
this
,
function
(
$
,
converse_api
,
_
,
utils
,
mock
,
test_utils
)
{
"
use strict
"
;
var
$iq
=
converse_api
.
env
.
$iq
,
Strophe
=
converse_api
.
env
.
Strophe
;
...
...
spec/chatbox.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
utils
"
,
"
converse-api
"
,
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
utils
,
mock
,
test_utils
)
{
}
(
this
,
function
(
utils
,
converse_api
,
mock
,
test_utils
)
{
"
use strict
"
;
var
_
=
converse_api
.
env
.
_
;
var
$
=
converse_api
.
env
.
jQuery
;
...
...
spec/chatroom.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
,
"
utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
,
utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
,
"
utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
,
utils
)
{
var
_
=
converse_api
.
env
.
_
;
var
$
=
converse_api
.
env
.
jQuery
;
var
$pres
=
converse_api
.
env
.
$pres
;
...
...
spec/controlbox.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
var
_
=
converse_api
.
env
.
_
;
var
$
=
converse_api
.
env
.
jQuery
;
var
$pres
=
converse_api
.
env
.
$pres
;
...
...
spec/converse.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
jquery
"
,
"
converse-api
"
,
"
underscore
"
,
"
mock
"
,
"
test_utils
"
],
function
(
$
,
_
,
mock
,
test_utils
)
{
return
factory
(
$
,
_
,
mock
,
test_utils
);
}
);
}
(
this
,
function
(
$
,
_
,
mock
,
test_utils
)
{
"
test_utils
"
],
factory
);
}
(
this
,
function
(
$
,
converse_api
,
_
,
mock
,
test_utils
)
{
var
b64_sha1
=
converse_api
.
env
.
b64_sha1
;
describe
(
"
Converse
"
,
function
()
{
...
...
spec/disco.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
jquery
"
,
"
converse-api
"
,
"
mock
"
,
"
test_utils
"
],
function
(
$
,
mock
,
test_utils
)
{
return
factory
(
$
,
mock
,
test_utils
);
}
);
}
(
this
,
function
(
$
,
mock
,
test_utils
)
{
"
test_utils
"
],
factory
);
}
(
this
,
function
(
$
,
converse_api
,
mock
,
test_utils
)
{
"
use strict
"
;
var
Strophe
=
converse_api
.
env
.
Strophe
;
...
...
spec/eventemitter.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
return
describe
(
"
The Converse Event Emitter
"
,
function
()
{
...
...
spec/headline.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
jquery
"
,
"
converse-api
"
,
"
utils
"
,
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
$
,
utils
,
mock
,
test_utils
)
{
}
(
this
,
function
(
$
,
converse_api
,
utils
,
mock
,
test_utils
)
{
"
use strict
"
;
var
$msg
=
converse_api
.
env
.
$msg
,
_
=
converse_api
.
env
.
_
;
...
...
spec/mam.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
"
use strict
"
;
var
_
=
converse_api
.
env
.
_
;
var
$
=
converse_api
.
env
.
jQuery
;
...
...
spec/minchats.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
var
_
=
converse_api
.
env
.
_
;
var
$msg
=
converse_api
.
env
.
$msg
;
...
...
spec/notification.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
"
use strict
"
;
var
$msg
=
converse_api
.
env
.
$msg
;
...
...
spec/otr.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
var
$
=
converse_api
.
env
.
jQuery
;
var
Strophe
=
converse_api
.
env
.
Strophe
;
var
b64_sha1
=
converse_api
.
env
.
b64_sha1
;
...
...
spec/ping.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
,
"
converse-ping
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
,
"
converse-ping
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
"
use strict
"
;
describe
(
"
XMPP Ping
"
,
function
()
{
...
...
spec/profiling.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
var
_
=
converse_api
.
env
.
_
;
var
$iq
=
converse_api
.
env
.
$iq
;
...
...
spec/protocol.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
jquery
"
,
"
converse-api
"
,
"
mock
"
,
"
test_utils
"
],
function
(
$
,
mock
,
test_utils
)
{
return
factory
(
$
,
mock
,
test_utils
);
}
);
}
(
this
,
function
(
$
,
mock
,
test_utils
)
{
"
test_utils
"
],
factory
);
}
(
this
,
function
(
$
,
converse_api
,
mock
,
test_utils
)
{
"
use strict
"
;
var
Strophe
=
converse_api
.
env
.
Strophe
;
var
$iq
=
converse_api
.
env
.
$iq
;
...
...
spec/register.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
var
$
=
converse_api
.
env
.
jQuery
;
var
Strophe
=
converse_api
.
env
.
Strophe
;
var
$iq
=
converse_api
.
env
.
$iq
;
...
...
spec/xmppstatus.js
View file @
de07b6a5
(
function
(
root
,
factory
)
{
define
([
"
mock
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
test_utils
)
{
define
([
"
mock
"
,
"
converse-api
"
,
"
test_utils
"
],
factory
);
}
(
this
,
function
(
mock
,
converse_api
,
test_utils
)
{
var
$
=
converse_api
.
env
.
jQuery
;
return
describe
(
"
The XMPPStatus model
"
,
function
()
{
...
...
tests/main.js
View file @
de07b6a5
...
...
@@ -10,6 +10,9 @@ config.shim['jasmine-html'] = {
deps
:
[
'
jasmine
'
],
exports
:
'
jasmine
'
};
config
.
shim
[
'
console-runner
'
]
=
{
deps
:
[
'
jasmine
'
]
};
require
.
config
(
config
);
// Polyfill 'bind' which is not available in phantomjs < 2.0
...
...
@@ -34,18 +37,9 @@ if (!Function.prototype.bind) {
require
([
"
jquery
"
,
"
converse
"
,
"
mock
"
,
"
jasmine-html
"
,
"
sinon
"
],
function
(
$
,
converse
,
mock
,
jasmine
,
sinon
)
{
// Set up converse.js
window
.
sinon
=
sinon
;
window
.
converse_api
=
converse
;
window
.
localStorage
.
clear
();
window
.
sessionStorage
.
clear
();
require
([
"
sinon
"
,
"
console-runner
"
,
//"spec/transcripts",
"
spec/utils
"
,
...
...
@@ -66,7 +60,10 @@ require([
"
spec/ping
"
,
"
spec/register
"
,
"
spec/xmppstatus
"
],
function
()
{
],
function
(
$
,
mock
,
jasmine
,
sinon
)
{
window
.
sinon
=
sinon
;
window
.
localStorage
.
clear
();
window
.
sessionStorage
.
clear
();
// Jasmine stuff
var
jasmineEnv
=
jasmine
.
getEnv
();
var
reporter
;
...
...
@@ -84,6 +81,5 @@ require([
jasmineEnv
.
updateInterval
=
0
;
}
jasmineEnv
.
execute
();
});
}
);
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