diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-03-04 19:10:04 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-03-04 19:10:04 +0100 |
commit | 15dde408db57009e1e4e26d969b9b3e6c1e0c255 (patch) | |
tree | bed87bc591f44dbdc7967c2c9f8b26dd1b040f49 /web/nms.gathering.org/speedometer/c3-master/spec/shape.line-spec.js | |
parent | 2e808e318a7b9abd09bf93116dae5368025c3611 (diff) |
nms: Remove redundant files
speedometer probably doesn't work now anyway until it's heavily updated.
Diffstat (limited to 'web/nms.gathering.org/speedometer/c3-master/spec/shape.line-spec.js')
-rw-r--r-- | web/nms.gathering.org/speedometer/c3-master/spec/shape.line-spec.js | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/web/nms.gathering.org/speedometer/c3-master/spec/shape.line-spec.js b/web/nms.gathering.org/speedometer/c3-master/spec/shape.line-spec.js deleted file mode 100644 index b4f5dc8..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/spec/shape.line-spec.js +++ /dev/null @@ -1,99 +0,0 @@ -describe('c3 chart shape line', function () { - 'use strict'; - - var chart, args; - - beforeEach(function (done) { - chart = window.initChart(chart, args, done); - }); - - describe('shape-rendering for line chart', function () { - - it('should update args', function () { - args = { - data: { - columns: [ - ['data1', 30, 200, 100, 400, -150, 250], - ['data2', 50, 20, 10, 40, 15, 25], - ['data3', -150, 120, 110, 140, 115, 125] - ], - type: 'line' - } - }; - expect(true).toBeTruthy(); - }); - - it("should not have shape-rendering when it's line chart", function () { - d3.selectAll('.c3-line').each(function () { - var style = d3.select(this).style('shape-rendering'); - expect(style).toBe('auto'); - }); - }); - - it('should chnage to step chart', function () { - args.data.type = 'step'; - expect(true).toBeTruthy(); - }); - - it("should have shape-rendering = crispedges when it's step chart", function () { - d3.selectAll('.c3-line').each(function () { - var style = d3.select(this).style('shape-rendering'); - expect(style).toBe('crispedges'); - }); - }); - - }); - - describe('point.show option', function () { - - it('should change args to include null data', 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: 'line' - } - }; - expect(true).toBeTruthy(); - }); - - it('should not show the circle for null', function (done) { - setTimeout(function () { - var target = chart.internal.main.select('.c3-chart-line.c3-target-data1'); - expect(+target.select('.c3-circle-0').style('opacity')).toBe(1); - expect(+target.select('.c3-circle-1').style('opacity')).toBe(0); - expect(+target.select('.c3-circle-2').style('opacity')).toBe(1); - done(); - }, 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(); - }); - - it('should not show the circle for null', function (done) { - setTimeout(function () { - var target = chart.internal.main.select('.c3-chart-line.c3-target-data1'); - expect(+target.select('.c3-circle-0').style('opacity')).toBe(0.5); - expect(+target.select('.c3-circle-1').style('opacity')).toBe(0); - expect(+target.select('.c3-circle-2').style('opacity')).toBe(0.5); - done(); - }, 500); - }); - - }); - -}); |