Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
74bdcf58
Commit
74bdcf58
authored
Mar 01, 2017
by
Mathieu Giraud
Browse files
tests: add test
parent
7ec399c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/test/QUnit/testFiles/scatterPlot_test.js
View file @
74bdcf58
...
...
@@ -56,3 +56,22 @@ QUnit.test("grid", function(assert) {
});
QUnit
.
test
(
"
node sizes
"
,
function
(
assert
)
{
var
m
=
new
Model
(
m
);
m
.
parseJsonData
(
json_data
,
100
)
m
.
loadGermline
()
m
.
initClones
()
var
sp
=
new
ScatterPlot
(
"
visu
"
,
m
);
sp
.
init
();
assert
.
equal
(
sp
.
nodes
[
0
].
s
,
0.05
,
"
node 0, size
"
)
m
.
clone
(
0
).
quantifiable
=
false
;
sp
.
updateClone
(
0
)
assert
.
equal
(
sp
.
nodes
[
0
].
s
,
0.10
,
"
node 0 (not quantifiable), size
"
)
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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