Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evgeny
c3-closed
Commits
90449789
Commit
90449789
authored
Feb 14, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec for travis
parent
d5396bf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
arc-spec.js
spec/arc-spec.js
+5
-2
c3-helper.js
spec/c3-helper.js
+1
-1
No files found.
spec/arc-spec.js
View file @
90449789
...
...
@@ -56,8 +56,11 @@ describe('c3 chart arc', function () {
expect
(
true
).
toBeTruthy
();
});
it
(
'should have correct d even if data id can be converted to a color'
,
function
()
{
expect
(
d3
.
select
(
'.c3-arc-black'
).
attr
(
'd'
)).
toMatch
(
/M-124
\.
.+,-171
\.
.+A211
\.
.+,211
\.
.+ 0 0,1 -3
\.
.+,-211
\.
.+L0,0Z/
);
it
(
'should have correct d even if data id can be converted to a color'
,
function
(
done
)
{
setTimeout
(
function
()
{
expect
(
d3
.
select
(
'.c3-arc-black'
).
attr
(
'd'
)).
toMatch
(
/M-124
\.
.+,-171
\.
.+A211
\.
.+,211
\.
.+ 0 0,1 -3
\.
.+,-211
\.
.+L0,0Z/
);
done
();
},
500
);
});
it
(
'should update args to have empty pie chart'
,
function
()
{
...
...
spec/c3-helper.js
View file @
90449789
...
...
@@ -39,7 +39,7 @@ function initChart(chart, args, done) {
window
.
setTimeout
(
function
()
{
done
();
},
10
0
);
},
10
);
return
chart
;
}
...
...
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