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
ffcdd09c
Commit
ffcdd09c
authored
May 24, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add info on using transcripts.
parent
0d2e49a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
converse-logs/README.md
converse-logs/README.md
+23
-0
tests/main.js
tests/main.js
+2
-0
No files found.
converse-logs/README.md
0 → 100644
View file @
ffcdd09c
# How to use saved Chrome/Chromium logs to replay events
**NOTE**
: This feature is very experimental and in many cases doesn't work
without data massaging and ugly hacks.
It's possible to save the log output from Chrome/Chromium (I haven't tried this
yet with any other browser) and then to replay that log output in the browser.
This can be a very helpful technique to track down bugs.
To do this, follow the following steps:
1.
Save the log file (right click and then click "Save as" in the browser's console).
2.
Rename the log file, making sure it ends in
`.html`
3.
Move the log file to the
`converse-logs`
directory in the converse.js repo.
4.
Add
`<log>`
to the top of the log file and
`</log>`
to the bottom of the log file.
5.
In
`converse-logs/converse-logs.js`
, add a new entry for the log file (don't
include the
`.html`
part of the file name.
6.
Make sure that
`spec/transcripts`
is "required"-ed in
`tests/main.js`
6.
Open
`tests.html`
in your browser.
Your logs will run first, and then all the other tests will run afterwards.
tests/main.js
View file @
ffcdd09c
...
@@ -3,6 +3,7 @@ config.paths.mock = "tests/mock";
...
@@ -3,6 +3,7 @@ config.paths.mock = "tests/mock";
config
.
paths
.
test_utils
=
"
tests/utils
"
;
config
.
paths
.
test_utils
=
"
tests/utils
"
;
config
.
paths
.
sinon
=
"
components/sinon/lib/sinon
"
;
config
.
paths
.
sinon
=
"
components/sinon/lib/sinon
"
;
config
.
paths
.
jasmine
=
"
components/jasmine/lib/jasmine-core/jasmine
"
;
config
.
paths
.
jasmine
=
"
components/jasmine/lib/jasmine-core/jasmine
"
;
config
.
paths
.
transcripts
=
"
converse-logs/converse-logs
"
;
config
.
paths
[
"
jasmine-html
"
]
=
"
components/jasmine/lib/jasmine-core/jasmine-html
"
;
config
.
paths
[
"
jasmine-html
"
]
=
"
components/jasmine/lib/jasmine-core/jasmine-html
"
;
config
.
paths
[
"
console-runner
"
]
=
"
node_modules/phantom-jasmine/lib/console-runner
"
;
config
.
paths
[
"
console-runner
"
]
=
"
node_modules/phantom-jasmine/lib/console-runner
"
;
config
.
shim
[
'
jasmine-html
'
]
=
{
config
.
shim
[
'
jasmine-html
'
]
=
{
...
@@ -67,6 +68,7 @@ require([
...
@@ -67,6 +68,7 @@ require([
};
};
require
([
require
([
"
console-runner
"
,
"
console-runner
"
,
//"spec/transcripts",
"
spec/converse
"
,
"
spec/converse
"
,
"
spec/headline
"
,
"
spec/headline
"
,
"
spec/disco
"
,
"
spec/disco
"
,
...
...
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