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
f20d50c1
Commit
f20d50c1
authored
Feb 06, 2019
by
flothoni
Browse files
model_test, update tests on top clones displayed
link to
#3697
parent
27c3b09b
Pipeline
#62192
passed with stages
in 4 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/test/QUnit/testFiles/model_test.js
View file @
f20d50c1
...
@@ -117,7 +117,8 @@ QUnit.test("top clones", function(assert) {
...
@@ -117,7 +117,8 @@ QUnit.test("top clones", function(assert) {
assert
.
equal
(
m
.
top
,
0
,
"
Top cannot be negative
"
)
assert
.
equal
(
m
.
top
,
0
,
"
Top cannot be negative
"
)
m
.
displayTop
(
m
.
countRealClones
()
*
2
+
10
)
m
.
displayTop
(
m
.
countRealClones
()
*
2
+
10
)
assert
.
equal
(
m
.
current_top
,
m
.
countRealClones
(),
"
Top cannot be greater than the number of real clones
"
)
assert
.
equal
(
m
.
top
,
m
.
countRealClones
()
*
2
+
10
,
"
Model top can be greater than the number of real clones
"
)
assert
.
equal
(
m
.
current_top
,
m
.
countRealClones
(),
"
Current Top cannot be greater than the number of real clones
"
)
m
.
displayTop
(
1
)
m
.
displayTop
(
1
)
...
...
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