Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,696
Issues
1,696
List
Boards
Labels
Service Desk
Milestones
Merge Requests
88
Merge Requests
88
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
921eaad0
Commit
921eaad0
authored
Aug 09, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: update
parent
43f0e167
Pipeline
#36400
failed with stages
in 3 minutes and 13 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
browser/test/QUnit/testFiles/axis_test.js
browser/test/QUnit/testFiles/axis_test.js
+8
-3
browser/test/QUnit/testFiles/tools_test.js
browser/test/QUnit/testFiles/tools_test.js
+1
-1
browser/test/functional/test_analysis-example1.rb
browser/test/functional/test_analysis-example1.rb
+4
-1
No files found.
browser/test/QUnit/testFiles/axis_test.js
View file @
921eaad0
...
...
@@ -162,7 +162,7 @@ QUnit.test("axis", function(assert) {
function
(
clone
)
{
return
undefined
;
},
"
V
"
,
true
,
0
,
0
);
assert
.
equal
(
axis
.
labels
.
length
,
2
,
"
Just two labels: 0
, undefined
"
);
assert
.
equal
(
axis
.
labels
.
length
,
3
,
"
Just three labels: 0, 1
, undefined
"
);
// undefined values
axis
=
new
NumericalAxis
(
m
);
...
...
@@ -170,6 +170,11 @@ QUnit.test("axis", function(assert) {
function
(
clone
)
{
return
'
undefined
'
;
});
assert
.
equal
(
axis
.
labels
[
0
].
pos
,
1
,
"
Just two labels: undefined, 0
"
);
assert
.
equal
(
axis
.
labels
[
1
].
pos
,
0
,
"
Just two labels: undefined, 0
"
);
assert
.
equal
(
axis
.
labels
[
0
].
pos
,
1
,
"
Just three labels: undefined, 0, 1
"
);
assert
.
equal
(
axis
.
labels
[
1
].
pos
,
0
,
"
Just three labels: undefined, 0, 1
"
);
assert
.
equal
(
axis
.
labels
[
2
].
pos
,
0.5
,
"
Just three labels: undefined, 0, 1
"
);
assert
.
equal
(
axis
.
labels
[
2
].
text
,
"
1
"
,
"
Just three labels: undefined, 0, 1
"
);
});
browser/test/QUnit/testFiles/tools_test.js
View file @
921eaad0
...
...
@@ -73,7 +73,7 @@ QUnit.test("test nice_min_max_steps", function(assert) {
assert
.
deepEqual
(
nice_min_max_steps
(
43
,
103
,
5
),
{
min
:
40
,
max
:
120
,
step
:
20
,
nb_steps
:
4
},
"
43..103 (5)
"
);
assert
.
deepEqual
(
nice_min_max_steps
(
43
,
103
,
3
),
{
min
:
0
,
max
:
150
,
step
:
50
,
nb_steps
:
3
},
"
43..103 (3)
"
);
assert
.
deepEqual
(
nice_min_max_steps
(
42
,
42
,
20
),
{
min
:
4
2
,
max
:
42
,
step
:
0
,
nb_steps
:
0
},
"
42..42 (20)
"
);
assert
.
deepEqual
(
nice_min_max_steps
(
42
,
42
,
20
),
{
min
:
4
0
,
max
:
50
,
step
:
10
,
nb_steps
:
1
},
"
42..42 (20)
"
);
});
QUnit
.
test
(
"
prepend_path_if_not_web
"
,
function
(
assert
)
{
...
...
browser/test/functional/test_analysis-example1.rb
View file @
921eaad0
...
...
@@ -25,7 +25,10 @@ class TestSimple < BrowserTest
def
test_01_legend_scatterplot
assert
(
$b
.
scatterplot_x_legend
(
0
).
text
==
"TRGV5"
),
"First legend should be TRGV5"
assert
(
$b
.
scatterplot_y_legend
(
0
).
text
==
"TRGJ1"
),
"First legend should be TRGJ1"
assert
(
$b
.
scatterplot_x_legend
(
0
,
2
).
text
==
"119"
),
"First legend should be 119, it is "
+
$b
.
scatterplot_x_legend
(
0
,
2
).
text
assert
(
$b
.
scatterplot_x_legend
(
0
,
2
).
text
==
"?"
),
"Legend should be ?, it is "
+
$b
.
scatterplot_x_legend
(
0
,
2
).
text
assert
(
$b
.
scatterplot_x_legend
(
1
,
2
).
text
==
"100"
),
"Legend should be 100, it is "
+
$b
.
scatterplot_x_legend
(
1
,
2
).
text
assert
(
$b
.
scatterplot_x_legend
(
2
,
2
).
text
==
"150"
),
"Legend should be 150, it is "
+
$b
.
scatterplot_x_legend
(
2
,
2
).
text
assert
(
$b
.
scatterplot_y_legend
(
0
,
2
).
text
==
"0%"
),
"First legend sould be 0%"
end
...
...
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