summaryrefslogtreecommitdiff
path: root/priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-02 08:06:50 +0200
committerhref <href@random.sh>2021-09-02 08:06:50 +0200
commit1fbd63419355e8ddd482c3cb62641bed1366763b (patch)
tree370ce63fcf19f2fd8b1f5136fc19a317050ba0f3 /priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js
parenttxt: don't search in files with dot, display them below in web (diff)
Phoenix 1.6rc0 & Use proper Esbuild/Tailwind/Npm
Diffstat (limited to 'priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js')
-rw-r--r--priv/static/metrics-graphics-3.0-alpha3/tests/charts/histogram_test.js64
1 files changed, 0 insertions, 64 deletions
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');
-});