From 317d6d39609e519982041b8d0cdf396e76de8b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86ndrew=20Rininsland?= Date: Sat, 27 May 2017 16:10:28 -0500 Subject: [PATCH] Sets all stubbed unit tests to 'skip' --- spec/api.axis-spec.js | 3 +- spec/api.focus-spec.js | 2 +- spec/api.grid-spec.js | 2 +- spec/api.load-spec.js | 4 +-- spec/api.region-spec.js | 6 ++-- spec/api.zoom-spec.js | 6 ++-- spec/arc-spec.js | 12 +++---- spec/axis-spec.js | 50 +++++++++++++------------- spec/core-spec.js | 14 ++++---- spec/data-spec.js | 78 ++++++++++++++++++++-------------------- spec/domain-spec.js | 14 ++++---- spec/grid-spec.js | 20 +++++------ spec/interaction-spec.js | 8 ++--- spec/legend-spec.js | 28 +++++++-------- spec/shape.bar-spec.js | 10 +++--- spec/shape.line-spec.js | 38 ++++++++++---------- spec/tooltip-spec.js | 2 +- spec/type-spec.js | 14 ++++---- 18 files changed, 155 insertions(+), 156 deletions(-) diff --git a/spec/api.axis-spec.js b/spec/api.axis-spec.js index 5764f73..44f7e33 100644 --- a/spec/api.axis-spec.js +++ b/spec/api.axis-spec.js @@ -9,7 +9,7 @@ describe('c3 api axis', function () { describe('axis.labels', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -49,6 +49,5 @@ describe('c3 api axis', function () { expect(label.attr('dx')).toBe('-0.5em'); expect(label.attr('dy')).toBe('-0.5em'); }); - }); }); diff --git a/spec/api.focus-spec.js b/spec/api.focus-spec.js index df64e80..1c3254e 100644 --- a/spec/api.focus-spec.js +++ b/spec/api.focus-spec.js @@ -378,7 +378,7 @@ describe('c3 api focus', function () { describe('when legend.show = false', function () { - it('should update args to hide legend', function () { + xit('should update args to hide legend', function () { args.legend = { show: false }; diff --git a/spec/api.grid-spec.js b/spec/api.grid-spec.js index ebaeee6..65ccd9b 100644 --- a/spec/api.grid-spec.js +++ b/spec/api.grid-spec.js @@ -9,7 +9,7 @@ describe('c3 api grid', function () { describe('ygrid.add and ygrid.remove', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ diff --git a/spec/api.load-spec.js b/spec/api.load-spec.js index fbea981..c25f27a 100644 --- a/spec/api.load-spec.js +++ b/spec/api.load-spec.js @@ -11,7 +11,7 @@ describe('c3 api load', function () { describe('as column', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -46,7 +46,7 @@ describe('c3 api load', function () { describe('category data', function () { - it('should update arg to category data', function () { + xit('should update arg to category data', function () { args = { data: { x: 'x', diff --git a/spec/api.region-spec.js b/spec/api.region-spec.js index ebd3b43..01a332f 100644 --- a/spec/api.region-spec.js +++ b/spec/api.region-spec.js @@ -9,7 +9,7 @@ describe('c3 api region', function () { describe('api.region', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -84,7 +84,7 @@ describe('c3 api region', function () { describe('api.region.add', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -175,7 +175,7 @@ describe('c3 api region', function () { describe('api.region.remove', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ diff --git a/spec/api.zoom-spec.js b/spec/api.zoom-spec.js index 4a65927..a4ce06b 100644 --- a/spec/api.zoom-spec.js +++ b/spec/api.zoom-spec.js @@ -9,7 +9,7 @@ describe('c3 api zoom', function () { describe('zoom', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -41,7 +41,7 @@ describe('c3 api zoom', function () { expect(domain[1]).toBe(target[1]); }); - it('should load timeseries data', function () { + xit('should load timeseries data', function () { args = { data: { x: 'date', @@ -82,7 +82,7 @@ describe('c3 api zoom', function () { describe('unzoom', function () { - it('should load indexed data', function () { + xit('should load indexed data', function () { args = { data: { columns: [ diff --git a/spec/arc-spec.js b/spec/arc-spec.js index 242a8fe..1894916 100644 --- a/spec/arc-spec.js +++ b/spec/arc-spec.js @@ -9,7 +9,7 @@ describe('c3 chart arc', function () { describe('show pie chart', function () { - it('should update args to have pie chart', function () { + xit('should update args to have pie chart', function () { args = { data: { columns: [ @@ -47,7 +47,7 @@ describe('c3 chart arc', function () { expect(d3.select('.c3-arc-data3').attr('d')).toMatch(/M1\..+,211\..+A211\..+,211\..+ 0 0,1 -124\..+,-171\..+L0,0Z/); }); - it('should set args with data id that can be converted to a color', function () { + xit('should set args with data id that can be converted to a color', function () { args.data.columns = [ ['black', 30], ['data2', 150], @@ -63,7 +63,7 @@ describe('c3 chart arc', function () { }, 500); }); - it('should update args to have empty pie chart', function () { + xit('should update args to have empty pie chart', function () { args = { data: { columns: [ @@ -99,7 +99,7 @@ describe('c3 chart arc', function () { describe('show gauge', function () { - it('should update args to have a 180 degree gauge', function () { + xit('should update args to have a 180 degree gauge', function () { args = { gauge: { width: 10, @@ -125,7 +125,7 @@ describe('c3 chart arc', function () { expect(data.attr('d')).toMatch(/M-304,-3\..+A304,304 0 0,1 245\..+,-178\..+L237\..+,-172\..+A294,294 0 0,0 -294,-3\..+Z/); }); - it('should update args to have a 2 Pi radian gauge that starts at Pi/2', function() { + xit('should update args to have a 2 Pi radian gauge that starts at Pi/2', function() { args = { gauge: { width: 10, @@ -155,7 +155,7 @@ describe('c3 chart arc', function () { expect(data.attr('d')).toMatch(/M-221.*?,-2\..+A221.*?,221.*? 0 1,1 -68.*?,210.*?L-65.*?,201.*?A211.*?,211.*? 0 1,0 -211.*?,-2.*?Z/); }); - it('should update labels use custom text', function() { + xit('should update labels use custom text', function() { args = { gauge: { width: 10, diff --git a/spec/axis-spec.js b/spec/axis-spec.js index 1e4d5be..d62ee81 100644 --- a/spec/axis-spec.js +++ b/spec/axis-spec.js @@ -33,7 +33,7 @@ describe('c3 chart axis', function () { describe('axis.y.tick.count', function () { - it('should update args to have only 1 tick on y axis', function () { + xit('should update args to have only 1 tick on y axis', function () { args.axis.y.tick.count = 1; expect(true).toBeTruthy(); }); @@ -43,7 +43,7 @@ describe('c3 chart axis', function () { expect(ticksSize).toBe(1); }); - it('should update args to have 2 ticks on y axis', function () { + xit('should update args to have 2 ticks on y axis', function () { args.axis.y.tick.count = 2; expect(true).toBeTruthy(); }); @@ -53,7 +53,7 @@ describe('c3 chart axis', function () { expect(ticksSize).toBe(2); }); - it('should update args to have 3 ticks on y axis', function () { + xit('should update args to have 3 ticks on y axis', function () { args.axis.y.tick.count = 3; expect(true).toBeTruthy(); }); @@ -69,7 +69,7 @@ describe('c3 chart axis', function () { var values = [100, 500]; - it('should update args to have only 2 ticks on y axis', function () { + xit('should update args to have only 2 ticks on y axis', function () { args.axis.y.tick.values = values; expect(true).toBeTruthy(); }); @@ -90,7 +90,7 @@ describe('c3 chart axis', function () { describe('axis y timeseries', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -126,7 +126,7 @@ describe('c3 chart axis', function () { }); }); - it('should update args to set axis.y.time', function () { + xit('should update args to set axis.y.time', function () { args.axis.y.tick.time = { value : 'seconds', interval : 60 @@ -185,7 +185,7 @@ describe('c3 chart axis', function () { describe('not rotated', function () { - it('should update args successfully', function () { + xit('should update args successfully', function () { args = { data: { columns: [ @@ -222,7 +222,7 @@ describe('c3 chart axis', function () { }); }); - it('should set axis.x.tick.format', function () { + xit('should set axis.x.tick.format', function () { args.axis.x = { tick: { format: function () { @@ -288,7 +288,7 @@ describe('c3 chart axis', function () { }); }); - it('should set big values in y', function () { + xit('should set big values in y', function () { args.data.columns = [ ['data1', 3000000000000000, 200, 100, 400, 150, 250], ['data2', 50, 20, 10, 40, 15, 25] @@ -308,7 +308,7 @@ describe('c3 chart axis', function () { describe('rotated', function () { - it('should update args to rotate axis', function () { + xit('should update args to rotate axis', function () { args.axis.rotated = true; expect(true).toBeTruthy(); }); @@ -367,7 +367,7 @@ describe('c3 chart axis', function () { describe('not rotated', function () { - it('should update args successfully', function () { + xit('should update args successfully', function () { args = { data: { x: 'x', @@ -429,7 +429,7 @@ describe('c3 chart axis', function () { describe('rotated', function () { - it('should update args to rotate axis', function () { + xit('should update args to rotate axis', function () { args.axis.rotated = true; expect(true).toBeTruthy(); }); @@ -480,7 +480,7 @@ describe('c3 chart axis', function () { describe('as null', function () { - it('should update args not to split ticks', function () { + xit('should update args not to split ticks', function () { args.axis.x.tick = { multiline: false }; @@ -497,7 +497,7 @@ describe('c3 chart axis', function () { describe('as value', function () { - it('should update args not to split ticks', function () { + xit('should update args not to split ticks', function () { args.axis.x.tick = { width: 150 }; @@ -531,7 +531,7 @@ describe('c3 chart axis', function () { describe('with axis.x.tick.format', function () { - it('should update args to use axis.x.tick.format', function () { + xit('should update args to use axis.x.tick.format', function () { args.axis.x.tick.format = function () { return ['this is a very long tick text', 'on category axis']; }; @@ -556,7 +556,7 @@ describe('c3 chart axis', function () { describe('not rotated', function () { - it('should update args successfully', function () { + xit('should update args successfully', function () { args = { data: { x: 'x', @@ -603,7 +603,7 @@ describe('c3 chart axis', function () { describe('not rotated', function () { - it('should update args successfully', function () { + xit('should update args successfully', function () { args = { data: { columns: [ @@ -646,7 +646,7 @@ describe('c3 chart axis', function () { describe('axis.x.tick.fit = true', function () { - it('should set args for indexed data', function () { + xit('should set args for indexed data', function () { args = { data: { columns: [ @@ -664,7 +664,7 @@ describe('c3 chart axis', function () { expect(ticks.size()).toBe(6); }); - it('should set args for x-based data', function () { + xit('should set args for x-based data', function () { args = { data: { x: 'x', @@ -695,7 +695,7 @@ describe('c3 chart axis', function () { describe('axis.x.tick.fit = false', function () { - it('should set args for indexed data', function () { + xit('should set args for indexed data', function () { args = { data: { columns: [ @@ -720,7 +720,7 @@ describe('c3 chart axis', function () { expect(ticks.size()).toBe(11); }); - it('should set args for x-based data', function () { + xit('should set args for x-based data', function () { args.data = { x: 'x', columns: [ @@ -750,7 +750,7 @@ describe('c3 chart axis', function () { describe('axis.y.inner', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -776,7 +776,7 @@ describe('c3 chart axis', function () { }); }); - it('should update args to have inner y axis', function () { + xit('should update args to have inner y axis', function () { args.axis.y.inner = true; expect(true).toBeTruthy(); }); @@ -794,7 +794,7 @@ describe('c3 chart axis', function () { describe('axis.y2.inner', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -821,7 +821,7 @@ describe('c3 chart axis', function () { }); }); - it('should update args to have inner y axis', function () { + xit('should update args to have inner y axis', function () { args.axis.y2.inner = true; expect(true).toBeTruthy(); }); diff --git a/spec/core-spec.js b/spec/core-spec.js index 785c4ab..95890da 100644 --- a/spec/core-spec.js +++ b/spec/core-spec.js @@ -27,7 +27,7 @@ describe('c3 chart', function () { expect(svg).not.toBeNull(); }); - it('should set 3rd party property to Function', function () { + xit('should set 3rd party property to Function', function () { Function.prototype.$extIsFunction = true; expect(true).toBeTruthy(); }); @@ -61,7 +61,7 @@ describe('c3 chart', function () { describe('bindto', function () { describe('selector', function () { - it('update args', function () { + xit('update args', function () { d3.select('#chart').html(''); args.bindto = '#chart'; expect(true).toBeTruthy(); @@ -73,7 +73,7 @@ describe('c3 chart', function () { }); describe('d3.selection object', function () { - it('update args', function () { + xit('update args', function () { d3.select('#chart').html(''); args.bindto = d3.select('#chart'); expect(true).toBeTruthy(); @@ -85,7 +85,7 @@ describe('c3 chart', function () { }); describe('null', function () { - it('update args', function () { + xit('update args', function () { d3.select('#chart').html(''); args.bindto = null; expect(true).toBeTruthy(); @@ -97,7 +97,7 @@ describe('c3 chart', function () { }); describe('empty string', function () { - it('update args', function () { + xit('update args', function () { d3.select('#chart').html(''); args.bindto = ''; expect(true).toBeTruthy(); @@ -112,7 +112,7 @@ describe('c3 chart', function () { describe('empty data', function () { - it('should upaate args for empty data', function () { + xit('should upaate args for empty data', function () { args = { data: { columns: [ @@ -129,7 +129,7 @@ describe('c3 chart', function () { expect(ticks.size()).toBe(0); }); - it('should upaate args for empty data', function () { + xit('should upaate args for empty data', function () { args = { data: { x: 'x', diff --git a/spec/data-spec.js b/spec/data-spec.js index bcbb648..4c5ffc9 100644 --- a/spec/data-spec.js +++ b/spec/data-spec.js @@ -9,7 +9,7 @@ describe('c3 chart data', function () { describe('load json', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { json: { @@ -31,7 +31,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args = { data: { json: [{ @@ -75,7 +75,7 @@ describe('c3 chart data', function () { }); }); - it('should update nested JSON args', function () { + xit('should update nested JSON args', function () { args = { data: { json: [{ @@ -166,7 +166,7 @@ describe('c3 chart data', function () { }); describe('function in data.order', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -189,7 +189,7 @@ describe('c3 chart data', function () { describe('data.xs', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -224,7 +224,7 @@ describe('c3 chart data', function () { describe('timeseries x', function () { describe('without xFormat', function () { - it('should load timeseries data successfully', function () { + xit('should load timeseries data successfully', function () { args = { data: { x : 'date', @@ -262,7 +262,7 @@ describe('c3 chart data', function () { describe('with xFormat', function () { describe('timeseries x with xFormat', function () { - it('should load timeseries data successfully', function () { + xit('should load timeseries data successfully', function () { args = { data: { x : 'date', @@ -305,7 +305,7 @@ describe('c3 chart data', function () { describe('as date string', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { x : 'date', @@ -354,7 +354,7 @@ describe('c3 chart data', function () { describe('as unixtime number', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { x : 'date', @@ -399,7 +399,7 @@ describe('c3 chart data', function () { describe('on line chart', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -437,7 +437,7 @@ describe('c3 chart data', function () { }); }); - it('should update args to be stacked', function () { + xit('should update args to be stacked', function () { args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; expect(true).toBeTruthy(); }); @@ -468,7 +468,7 @@ describe('c3 chart data', function () { describe('on area chart', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -506,7 +506,7 @@ describe('c3 chart data', function () { }); }); - it('should update args to be stacked', function () { + xit('should update args to be stacked', function () { args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; expect(true).toBeTruthy(); }); @@ -537,7 +537,7 @@ describe('c3 chart data', function () { describe('on bar chart', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -575,7 +575,7 @@ describe('c3 chart data', function () { }); }); - it('should update args to be stacked', function () { + xit('should update args to be stacked', function () { args.data.groups = [['data1', 'data2'], ['data3', 'data4']]; expect(true).toBeTruthy(); }); @@ -606,7 +606,7 @@ describe('c3 chart data', function () { describe('for all targets', function () { - it('should update args to show data label for all data', function () { + xit('should update args to show data label for all data', function () { args = { data: { columns: [ @@ -638,7 +638,7 @@ describe('c3 chart data', function () { describe('as true', function () { - it('should update args to show data label for only data1', function () { + xit('should update args to show data label for only data1', function () { args = { data: { columns: [ @@ -671,7 +671,7 @@ describe('c3 chart data', function () { describe('as function', function () { - it('should update args to show data label for only data1', function () { + xit('should update args to show data label for only data1', function () { args = { data: { columns: [ @@ -706,7 +706,7 @@ describe('c3 chart data', function () { describe('with small values', function () { - it('should update args to show data label', function () { + xit('should update args to show data label', function () { args = { data: { columns: [ @@ -729,7 +729,7 @@ describe('c3 chart data', function () { describe('on not rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -766,7 +766,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -792,7 +792,7 @@ describe('c3 chart data', function () { describe('on rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args.data.type = 'bar'; args.axis = { rotated: true @@ -817,7 +817,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -847,7 +847,7 @@ describe('c3 chart data', function () { describe('on not rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -884,7 +884,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -910,7 +910,7 @@ describe('c3 chart data', function () { describe('on rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args.data.type = 'bar'; args.axis = { rotated: true @@ -935,7 +935,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -965,7 +965,7 @@ describe('c3 chart data', function () { describe('on non rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -1002,7 +1002,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -1027,7 +1027,7 @@ describe('c3 chart data', function () { describe('on rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args.data.type = 'bar'; args.axis = { rotated: true @@ -1052,7 +1052,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -1081,7 +1081,7 @@ describe('c3 chart data', function () { describe('on non rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -1114,7 +1114,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -1140,7 +1140,7 @@ describe('c3 chart data', function () { describe('on rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args.data.type = 'bar'; args.axis = { rotated: true @@ -1165,7 +1165,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -1194,7 +1194,7 @@ describe('c3 chart data', function () { describe('on non rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -1227,7 +1227,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); @@ -1253,7 +1253,7 @@ describe('c3 chart data', function () { describe('on rotated axis', function () { - it('should update args', function () { + xit('should update args', function () { args.data.type = 'bar'; args.axis = { rotated: true @@ -1278,7 +1278,7 @@ describe('c3 chart data', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args.data.type = 'line'; expect(true).toBeTruthy(); }); diff --git a/spec/domain-spec.js b/spec/domain-spec.js index 936e206..39795a4 100644 --- a/spec/domain-spec.js +++ b/spec/domain-spec.js @@ -22,7 +22,7 @@ describe('c3 chart domain', function () { describe('axis.y.min', function () { - it('should change axis.y.min to -100', function () { + xit('should change axis.y.min to -100', function () { args.axis.y.min = -100; expect(true).toBeTruthy(); }); @@ -33,7 +33,7 @@ describe('c3 chart domain', function () { expect(domain[1]).toBe(450); }); - it('should change axis.y.min to 500', function () { + xit('should change axis.y.min to 500', function () { args.axis.y.min = 500; expect(true).toBeTruthy(); }); @@ -44,7 +44,7 @@ describe('c3 chart domain', function () { expect(domain[1]).toBe(511); }); - it('should change axis.y.min to undefined', function () { + xit('should change axis.y.min to undefined', function () { args.axis.y.min = undefined; expect(true).toBeTruthy(); }); @@ -53,7 +53,7 @@ describe('c3 chart domain', function () { describe('axis.y.max', function () { - it('should change axis.y.max to 1000', function () { + xit('should change axis.y.max to 1000', function () { args.axis.y.max = 1000; expect(true).toBeTruthy(); }); @@ -64,7 +64,7 @@ describe('c3 chart domain', function () { expect(domain[1]).toBe(1099); }); - it('should change axis.y.max to 0', function () { + xit('should change axis.y.max to 0', function () { args.axis.y.max = 0; expect(true).toBeTruthy(); }); @@ -79,7 +79,7 @@ describe('c3 chart domain', function () { describe('axis.y.padding', function () { - it('should change axis.y.max to 1000', function () { + xit('should change axis.y.max to 1000', function () { args = { data: { columns: [ @@ -102,7 +102,7 @@ describe('c3 chart domain', function () { expect(domain[1]).toBeCloseTo(69, -1); }); - it('should change axis.y.max to 1000 with top/bottom padding', function () { + xit('should change axis.y.max to 1000 with top/bottom padding', function () { args = { data: { columns: [ diff --git a/spec/grid-spec.js b/spec/grid-spec.js index b5ef4c9..abd1861 100644 --- a/spec/grid-spec.js +++ b/spec/grid-spec.js @@ -9,7 +9,7 @@ describe('c3 chart grid', function () { describe('y grid show', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -35,7 +35,7 @@ describe('c3 chart grid', function () { expect(chart.internal.main.select('.c3-ygrids').size()).toBe(0); }); - it('should update args to show y grids', function () { + xit('should update args to show y grids', function () { args.grid.y.show = true; expect(true).toBeTruthy(); }); @@ -46,7 +46,7 @@ describe('c3 chart grid', function () { expect(ygrids.selectAll('.c3-ygrid').size()).toBe(9); }); - it('should update args to show only 3 y grids', function () { + xit('should update args to show only 3 y grids', function () { args.grid.y.ticks = 3; expect(true).toBeTruthy(); }); @@ -57,7 +57,7 @@ describe('c3 chart grid', function () { expect(ygrids.selectAll('.c3-ygrid').size()).toBe(3); }); - it('should update args to show y grids depending on y axis ticks', function () { + xit('should update args to show y grids depending on y axis ticks', function () { args.axis.y.tick.count = 5; expect(true).toBeTruthy(); }); @@ -81,7 +81,7 @@ describe('c3 chart grid', function () { describe('position', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -127,7 +127,7 @@ describe('c3 chart grid', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -183,7 +183,7 @@ describe('c3 chart grid', function () { describe('position', function () { - it('should have correct height', function () { + xit('should have correct height', function () { args = { data: { columns: [ @@ -229,7 +229,7 @@ describe('c3 chart grid', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -282,7 +282,7 @@ describe('c3 chart grid', function () { describe('with padding.top', function () { - it('should have correct height', function () { + xit('should have correct height', function () { args = { data: { columns: [ @@ -320,7 +320,7 @@ describe('c3 chart grid', function () { describe('on category axis', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { x: 'x', diff --git a/spec/interaction-spec.js b/spec/interaction-spec.js index 4e62070..7cf1821 100644 --- a/spec/interaction-spec.js +++ b/spec/interaction-spec.js @@ -11,7 +11,7 @@ describe('c3 chart interaction', function () { describe('custom x', function () { - it('should generate bar chart', function () { + xit('should generate bar chart', function () { args = { data: { x: 'x', @@ -35,7 +35,7 @@ describe('c3 chart interaction', function () { }); }); - it('should generate bar chart with only one data', function () { + xit('should generate bar chart with only one data', function () { args = { data: { x: 'x', @@ -62,7 +62,7 @@ describe('c3 chart interaction', function () { describe('timeseries', function () { - it('should generate line chart with timeseries', function () { + xit('should generate line chart with timeseries', function () { args = { data: { x: 'x', @@ -86,7 +86,7 @@ describe('c3 chart interaction', function () { }); - it('should generate line chart with only 1 data timeseries', function () { + xit('should generate line chart with only 1 data timeseries', function () { args = { data: { x: 'x', diff --git a/spec/legend-spec.js b/spec/legend-spec.js index 7fb9878..f0925fa 100644 --- a/spec/legend-spec.js +++ b/spec/legend-spec.js @@ -9,7 +9,7 @@ describe('c3 chart legend', function () { describe('legend when multiple charts rendered', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -22,7 +22,7 @@ describe('c3 chart legend', function () { expect(true).toBeTruthy(); }); - it('should update args with long data names', function () { + xit('should update args with long data names', function () { args = { data: { columns: [ @@ -48,7 +48,7 @@ describe('c3 chart legend', function () { describe('legend position', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -69,7 +69,7 @@ describe('c3 chart legend', function () { describe('legend as inset', function () { - it('should change the legend to "inset" successfully', function () { + xit('should change the legend to "inset" successfully', function () { args = { data: { columns: [ @@ -98,7 +98,7 @@ describe('c3 chart legend', function () { expect(box.height).toBe(48); }); - it('should change the legend step to 1 successfully', function () { + xit('should change the legend step to 1 successfully', function () { args.legend.inset.step = 1; expect(true).toBeTruthy(); }); @@ -108,7 +108,7 @@ describe('c3 chart legend', function () { expect(box.height).toBe(28); }); - it('should change the legend step to 2 successfully', function () { + xit('should change the legend step to 2 successfully', function () { args.legend.inset.step = 2; expect(true).toBeTruthy(); }); @@ -118,7 +118,7 @@ describe('c3 chart legend', function () { expect(box.height).toBe(48); }); - it('should update args to have only one series', function () { + xit('should update args to have only one series', function () { args = { data: { columns: [ @@ -142,7 +142,7 @@ describe('c3 chart legend', function () { describe('legend.hide', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -163,7 +163,7 @@ describe('c3 chart legend', function () { }); }); - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -187,7 +187,7 @@ describe('c3 chart legend', function () { describe('legend.show', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -218,7 +218,7 @@ describe('c3 chart legend', function () { }); describe('custom legend size', function() { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -241,14 +241,14 @@ describe('c3 chart legend', function () { it('renders the legend item with the correct width and height', function () { d3.selectAll('.c3-legend-item-tile').each(function () { expect(d3.select(this).style('stroke-width')).toBe(args.legend.item.tile.height + 'px'); - var tileWidth = d3.select(this).attr('x2') - d3.select(this).attr('x1'); + var tileWidth = d3.select(this).attr('x2') - d3.select(this).attr('x1'); expect(tileWidth).toBe(args.legend.item.tile.width); }); }); }); describe('custom legend padding', function() { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -267,7 +267,7 @@ describe('c3 chart legend', function () { d3.selectAll('.c3-legend-item-padded1 .c3-legend-item-tile, .c3-legend-item-padded2 .c3-legend-item-tile').each(function (el, index) { var itemWidth = d3.select(this).node().parentNode.getBBox().width, textBoxWidth = d3.select(d3.select(this).node().parentNode).select('text').node().getBBox().width, - tileWidth = 15, // default value is 10, plus 5 more for padding + tileWidth = 15, // default value is 10, plus 5 more for padding expectedWidth = textBoxWidth + tileWidth + (index ? 0 : 10) + args.legend.padding; expect(itemWidth).toBe(expectedWidth); diff --git a/spec/shape.bar-spec.js b/spec/shape.bar-spec.js index fe94f10..cef0d09 100644 --- a/spec/shape.bar-spec.js +++ b/spec/shape.bar-spec.js @@ -12,7 +12,7 @@ describe('c3 chart shape bar', function () { describe('with groups', function () { describe('with indexed data', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -37,7 +37,7 @@ describe('c3 chart shape bar', function () { }); describe('with timeseries data', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { x: 'date', @@ -69,7 +69,7 @@ describe('c3 chart shape bar', function () { }); describe('with category data', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { x: 'date', @@ -106,7 +106,7 @@ describe('c3 chart shape bar', function () { describe('with normal axis', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -151,7 +151,7 @@ describe('c3 chart shape bar', function () { describe('with rotated axis', function () { - it('should change the chart as axis rotated', function () { + xit('should change the chart as axis rotated', function () { args.axis.rotated = true; expect(true).toBeTruthy(); }); diff --git a/spec/shape.line-spec.js b/spec/shape.line-spec.js index c38ff3f..c14324e 100644 --- a/spec/shape.line-spec.js +++ b/spec/shape.line-spec.js @@ -11,7 +11,7 @@ describe('c3 chart shape line', function () { describe('shape-rendering for line chart', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -42,7 +42,7 @@ describe('c3 chart shape line', function () { }); }); - it('should change to step chart', function () { + xit('should change to step chart', function () { args.data.type = 'step'; expect(true).toBeTruthy(); }); @@ -54,7 +54,7 @@ describe('c3 chart shape line', function () { }); }); - it('should change to spline chart', function () { + xit('should change to spline chart', function () { args.data.type = 'spline'; expect(true).toBeTruthy(); }); @@ -67,7 +67,7 @@ describe('c3 chart shape line', function () { describe('point.show option', function () { - it('should change args to include null data', function () { + xit('should change args to include null data', function () { args = { data: { columns: [ @@ -104,19 +104,19 @@ describe('c3 chart shape line', function () { }, 500); }); - // it('should change args to include null data on scatter plot', function () { - // args = { - // data: { - // columns: [ - // ['data1', 30, null, 100, 400, -150, 250], - // ['data2', 50, 20, 10, 40, 15, 25], - // ['data3', -150, 120, 110, 140, 115, 125] - // ], - // type: 'scatter' - // } - // }; - // expect(true).toBeTruthy(); - // }); + xit('should change args to include null data on scatter plot', function () { + args = { + data: { + columns: [ + ['data1', 30, null, 100, 400, -150, 250], + ['data2', 50, 20, 10, 40, 15, 25], + ['data3', -150, 120, 110, 140, 115, 125] + ], + type: 'scatter' + } + }; + expect(true).toBeTruthy(); + }); // it('should not show the circle for null', function (done) { // setTimeout(function () { @@ -132,7 +132,7 @@ describe('c3 chart shape line', function () { describe('spline.interpolation option', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -156,7 +156,7 @@ describe('c3 chart shape line', function () { expect(chart.internal.getInterpolate(chart.data()[0])).toBe('monotone'); }); - it('should not use a non-valid interpolation', function () { + xit('should not use a non-valid interpolation', function () { args.spline.interpolation.type = 'foo'; expect(true).toBeTruthy(); }); diff --git a/spec/tooltip-spec.js b/spec/tooltip-spec.js index 15f2772..149c57d 100644 --- a/spec/tooltip-spec.js +++ b/spec/tooltip-spec.js @@ -45,7 +45,7 @@ describe('c3 chart tooltip', function () { describe('with left margin', function () { - it('should set left margin', function () { + xit('should set left margin', function () { d3.select('#chart').style('margin-left', '300px'); expect(true).toBeTruthy(); }); diff --git a/spec/type-spec.js b/spec/type-spec.js index 9210d50..00e3867 100644 --- a/spec/type-spec.js +++ b/spec/type-spec.js @@ -11,7 +11,7 @@ describe('c3 chart types', function () { describe('with data', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -29,7 +29,7 @@ describe('c3 chart types', function () { expect(chart.internal.hasArcType()).toBeTruthy(); }); - it('should change chart type to "bar"', function () { + xit('should change chart type to "bar"', function () { args.data.type = 'bar'; expect(true).toBeTruthy(); }); @@ -42,7 +42,7 @@ describe('c3 chart types', function () { describe('with empty data', function () { - it('should update args to have empty data', function () { + xit('should update args to have empty data', function () { args = { data: { columns: [], @@ -56,7 +56,7 @@ describe('c3 chart types', function () { expect(chart.internal.hasArcType()).toBeTruthy(); }); - it('should change chart type to "bar"', function () { + xit('should change chart type to "bar"', function () { args.data.type = 'bar'; expect(true).toBeTruthy(); }); @@ -71,7 +71,7 @@ describe('c3 chart types', function () { describe('internal.hasType', function () { - it('should update args', function () { + xit('should update args', function () { args = { data: { columns: [ @@ -97,7 +97,7 @@ describe('c3 chart types', function () { expect(chart.internal.hasType('bar')).toBeFalsy(); }); - it('should unload successfully', function () { + xit('should unload successfully', function () { chart.unload([]); expect(true).toBeTruthy(); }); @@ -114,7 +114,7 @@ describe('c3 chart types', function () { expect(chart.internal.hasType('bar')).toBeFalsy(); }); - it('should change chart type to "bar" successfully', function () { + xit('should change chart type to "bar" successfully', function () { args.data.type = 'bar'; expect(true).toBeTruthy(); });