From 1fbd63419355e8ddd482c3cb62641bed1366763b Mon Sep 17 00:00:00 2001 From: href Date: Thu, 2 Sep 2021 08:06:50 +0200 Subject: Phoenix 1.6rc0 & Use proper Esbuild/Tailwind/Npm --- .../tests/charts/histogram_test.js | 64 ---------------------- 1 file changed, 64 deletions(-) delete mode 100644 priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js (limited to 'priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js') diff --git a/priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js b/priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js deleted file mode 100644 index 2e69e70..0000000 --- a/priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js +++ /dev/null @@ -1,64 +0,0 @@ -module('histogram'); - - -// THIS TEST NEEDS TO BE REWRITTEN AS A RESULT OF #614 -// test('A solitary active datapoint exists', function() { -// var params = { -// target: '#qunit-fixture', -// data: d3.range(10000).map(d3.random.bates(10)), -// chart_type: 'histogram', -// linked: true -// }; - -// MG.data_graphic(params); -// equal(document.querySelectorAll('.mg-active-datapoint').length, 1, 'One active datapoint exists'); -// }); - -test('Rollovers exist', function() { - var params = { - target: '#qunit-fixture', - data: d3.range(10000).map(d3.randomBates(10)), - chart_type: 'histogram', - linked: true - }; - - MG.data_graphic(params); - ok(document.querySelector('.mg-rollover-rect'), 'Rollovers exist'); -}); - -test('We have only one set of rollovers', function() { - var params = { - target: '#qunit-fixture', - data: d3.range(10000).map(d3.randomBates(10)), - chart_type: 'histogram', - linked: true - }; - - MG.data_graphic(params); - equal(document.querySelectorAll('.mg-rollover-rect').length, 1, 'One set of rollovers exists'); -}); - -test('Linked chart has the required class set', function() { - var params = { - target: '#qunit-fixture', - data: d3.range(10000).map(d3.randomBates(10)), - chart_type: 'histogram', - linked: true - }; - - MG.data_graphic(params); - var matches = document.querySelector(params.target + ' svg').getAttribute('class').match(/linked/); - ok(matches, 'Linked chart has class `linked` set'); -}); - -test('Histogram exists', function() { - var params = { - target: '#qunit-fixture', - data: d3.range(10000).map(d3.randomBates(10)), - chart_type: 'histogram', - linked: true - }; - - MG.data_graphic(params); - ok(document.querySelector('.mg-histogram'), 'Histogram exists'); -}); -- cgit v1.2.3