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
e7aed050
Commit
e7aed050
authored
Feb 07, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move test pages into the tests folder
parent
9c3e9233
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
8 deletions
+35
-8
Makefile
Makefile
+1
-1
tests/index.html
tests/index.html
+7
-7
tests/inverse.html
tests/inverse.html
+17
-0
tests/mock.js
tests/mock.js
+4
-0
tests/runner-transpiled.js
tests/runner-transpiled.js
+1
-0
tests/runner.js
tests/runner.js
+5
-0
tests/transpiled.html
tests/transpiled.html
+0
-0
No files found.
Makefile
View file @
e7aed050
...
...
@@ -218,7 +218,7 @@ eslint: stamp-npm
.PHONY
:
check
check
:
eslint
LOG_CR_VERBOSITY
=
INFO
$(CHROMIUM)
--no-sandbox
http://localhost:
$(HTTPSERVE_PORT)
/tests.html
LOG_CR_VERBOSITY
=
INFO
$(CHROMIUM)
--no-sandbox
http://localhost:
$(HTTPSERVE_PORT)
/tests
/index
.html
########################################################################
## Documentation
...
...
tests.html
→
tests
/index
.html
View file @
e7aed050
...
...
@@ -4,15 +4,15 @@
<head>
<title>
Converse.js Tests
</title>
<meta
name=
"description"
content=
"Converse.js: A chat client for your website"
/>
<link
rel=
"shortcut icon"
type=
"image/png"
href=
"node_modules/jasmine-core/images/jasmine_favicon.png"
>
<link
rel=
"shortcut icon"
type=
"image/png"
href=
"
../
node_modules/jasmine-core/images/jasmine_favicon.png"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"node_modules/jasmine-core/lib/jasmine-core/jasmine.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"css/jasmine.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
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"
../
node_modules/jasmine-core/lib/jasmine-core/jasmine.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"
../
css/jasmine.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"
/>
<script
src=
"src/config.js"
></script>
<script
data-main=
"
tests/runner"
src=
"
node_modules/requirejs/require.js"
></script>
<script
src=
"
../
src/config.js"
></script>
<script
data-main=
"
runner"
src=
"../
node_modules/requirejs/require.js"
></script>
<style>
.tests-brand-heading
{
...
...
tests/inverse.html
0 → 100644
View file @
e7aed050
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
Converse.js Tests
</title>
<meta
name=
"description"
content=
"Converse.js: A chat client for your website"
/>
<link
rel=
"shortcut icon"
type=
"image/png"
href=
"../node_modules/jasmine-core/images/jasmine_favicon.png"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"../node_modules/jasmine-core/lib/jasmine-core/jasmine.css"
>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"../css/inverse.css"
/>
<script
src=
"../src/config.js"
></script>
<script
type=
"text/javascript"
>
config
.
view_mode
=
'
fullscreen
'
;
</script>
<script
data-main=
"runner"
src=
"../node_modules/requirejs/require.js"
></script>
</head>
<body></body>
</html>
tests/mock.js
View file @
e7aed050
...
...
@@ -6,6 +6,9 @@
var
Strophe
=
converse
.
env
.
Strophe
;
var
$iq
=
converse
.
env
.
$iq
;
var
mock
=
{};
mock
.
view_mode
=
'
overlayed
'
;
// Names from http://www.fakenamegenerator.com/
mock
.
req_names
=
[
'
Louw Spekman
'
,
'
Mohamad Stet
'
,
'
Dominik Beyer
'
...
...
@@ -110,6 +113,7 @@
'
no_trimming
'
:
true
,
'
auto_login
'
:
true
,
'
jid
'
:
'
dummy@localhost
'
,
'
view_mode
'
:
mock
.
view_mode
,
'
password
'
:
'
secret
'
,
'
debug
'
:
false
},
settings
||
{}));
...
...
tests/runner-transpiled.js
View file @
e7aed050
/*global config */
// Extra test dependencies
config
.
baseUrl
=
'
../
'
;
config
.
paths
.
jquery
=
"
node_modules/jquery/dist/jquery
"
;
config
.
paths
.
mock
=
"
tests/mock
"
;
config
.
paths
[
'
wait-until-promise
'
]
=
"
node_modules/wait-until-promise/index
"
;
...
...
tests/runner.js
View file @
e7aed050
/*global config */
// Extra test dependencies
config
.
baseUrl
=
'
../
'
;
config
.
paths
.
jquery
=
"
node_modules/jquery/dist/jquery
"
;
config
.
paths
.
mock
=
"
tests/mock
"
;
config
.
paths
[
'
wait-until-promise
'
]
=
"
node_modules/wait-until-promise/index
"
;
...
...
@@ -58,6 +59,10 @@ var specs = [
require
([
'
console-reporter
'
,
'
mock
'
,
'
sinon
'
,
'
wait-until-promise
'
,
'
pluggable
'
],
function
(
ConsoleReporter
,
mock
,
sinon
,
waitUntilPromise
,
pluggable
)
{
if
(
config
.
view_mode
)
{
mock
.
view_mode
=
config
.
view_mode
;
}
window
.
sinon
=
sinon
;
window
.
waitUntilPromise
=
waitUntilPromise
.
default
;
window
.
localStorage
.
clear
();
...
...
t
ranspiled_tests
.html
→
t
ests/transpiled
.html
View file @
e7aed050
File moved
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