Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
4f63a1cc
Commit
4f63a1cc
authored
Feb 28, 2019
by
Mikaël Salson
Browse files
segmenter_test: Test that clones are ordered with multiSelect
See
#3759
parent
192b0891
Pipeline
#65792
passed with stages
in 5 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/test/QUnit/testFiles/segmenter_test.js
View file @
4f63a1cc
...
...
@@ -63,6 +63,17 @@ QUnit.test("segmenter", function(assert) {
m
.
multiSelect
([
0
,
1
])
assert
.
equal
(
document
.
getElementsByClassName
(
"
stats_content
"
)[
0
].
innerHTML
,
"
2 clones, 30 reads (15.00%)
"
,
"
stats (several clones) : Ok
"
)
// Select multiple clones and check they are ordered.
m
.
unselectAll
()
m
.
multiSelect
([
0
,
1
,
2
]);
var
list_html
=
document
.
getElementById
(
'
listSeq
'
).
innerHTML
;
var
clone0_pos
=
list_html
.
search
(
'
"seq0"
'
);
var
clone1_pos
=
list_html
.
search
(
'
"seq1"
'
);
var
clone2_pos
=
list_html
.
search
(
'
"seq2"
'
);
// Clone 2 is more abundant than clone 1 more abundant than clone 0
assert
.
ok
(
clone2_pos
<
clone1_pos
);
assert
.
ok
(
clone1_pos
<
clone0_pos
);
m
.
unselectAll
()
m
.
select
(
2
)
m
.
changeTime
(
3
)
...
...
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