Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1,426
Issues
1,426
List
Boards
Labels
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
65d890a7
Commit
65d890a7
authored
Feb 22, 2017
by
Mathieu Giraud
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: add speed tests to QUnit tests
See
#2196
.
parent
937fc4b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
browser/test/QUnit/testFiles/speed_test.js
browser/test/QUnit/testFiles/speed_test.js
+28
-0
browser/test/QUnit/test_Qunit.html
browser/test/QUnit/test_Qunit.html
+2
-0
No files found.
browser/test/QUnit/testFiles/speed_test.js
0 → 100644
View file @
65d890a7
QUnit
.
test
(
"
Speed: many clones
"
,
function
(
assert
)
{
var
data
=
dataWithManyClones
(
42
);
assert
.
equal
(
data
[
"
clones
"
].
length
,
42
,
"
dataWithManyClones -> 42
"
);
});
QUnit
.
test
(
"
Speed: without views
"
,
function
(
assert
)
{
var
m
=
new
Model
();
console
.
log
(
speedTest
(
m
));
assert
.
equal
(
m
.
clones
.
length
,
101
,
""
);
});
QUnit
.
test
(
"
Speed: with views
"
,
function
(
assert
)
{
var
m
=
new
Model
();
var
sp
=
new
ScatterPlot
(
"
visu
"
,
m
);
var
segment
=
new
Segment
(
"
segment
"
,
m
);
var
list
=
new
List
(
"
list
"
,
"
data
"
,
m
);
console
.
log
(
speedTest
(
m
));
assert
.
equal
(
m
.
clones
.
length
,
101
,
""
);
});
browser/test/QUnit/test_Qunit.html
View file @
65d890a7
...
...
@@ -50,6 +50,7 @@
<script
type=
"text/javascript"
src=
'../../js/pdf.js'
></script>
<script
type=
"text/javascript"
src=
'../../js/database.js'
data-cover
></script>
<script
type=
"text/javascript"
src=
'../../js/tools.js'
data-cover
></script>
<script
type=
"text/javascript"
src=
'../../js/speed_test.js'
data-cover
></script>
<script
type=
"text/javascript"
src=
"./testFiles/data_test.js"
></script>
<!-- needed to load form with jQuery -->
...
...
@@ -106,5 +107,6 @@
<script
src=
"./testFiles/tools_test.js"
></script>
<script
src=
"./testFiles/germline_test.js"
></script>
<script
src=
"./testFiles/model_loader_test.js"
></script>
<script
src=
"./testFiles/speed_test.js"
></script>
</body>
</html>
Mathieu Giraud
@magiraud
mentioned in issue
#2196
·
Feb 22, 2017
mentioned in issue
#2196
mentioned in issue #2196
Toggle commit list
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