Skip to content

Commit dae94d4

Browse files
committed
Add xPixel and yPixel to remaining tests
1 parent 7868ae9 commit dae94d4

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

test/jasmine/tests/funnelarea_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ describe('funnelarea hovering', function() {
722722
'data', 'fullData',
723723
'label', 'color', 'value',
724724
'percent', 'text',
725-
'bbox'
725+
'bbox', 'xPixel', 'yPixel'
726726
];
727727

728728
expect(typeof hoverData.points[0].bbox).toEqual('object');

test/jasmine/tests/geo_test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ describe('Test geo interactions', function() {
882882
it('should contain the correct fields', function() {
883883
expect(Object.keys(ptData).sort()).toEqual([
884884
'data', 'fullData', 'curveNumber', 'pointNumber', 'pointIndex', 'bbox',
885-
'lon', 'lat', 'location', 'marker.size'
885+
'lon', 'lat', 'location', 'marker.size', 'xPixel', 'yPixel'
886886
].sort());
887887
expect(cnt).toEqual(1);
888888
});
@@ -947,7 +947,7 @@ describe('Test geo interactions', function() {
947947
it('should contain the correct fields', function() {
948948
expect(Object.keys(ptData).sort()).toEqual([
949949
'data', 'fullData', 'curveNumber', 'pointNumber', 'pointIndex', 'bbox',
950-
'lon', 'lat', 'location', 'marker.size'
950+
'lon', 'lat', 'location', 'marker.size', 'xPixel', 'yPixel'
951951
].sort());
952952
});
953953

@@ -979,7 +979,7 @@ describe('Test geo interactions', function() {
979979
it('should contain the correct fields', function() {
980980
expect(Object.keys(ptData).sort()).toEqual([
981981
'data', 'fullData', 'curveNumber', 'pointNumber', 'pointIndex', 'bbox',
982-
'lon', 'lat', 'location', 'marker.size'
982+
'lon', 'lat', 'location', 'marker.size', 'xPixel', 'yPixel'
983983
].sort());
984984
});
985985

@@ -1008,7 +1008,7 @@ describe('Test geo interactions', function() {
10081008
it('should contain the correct fields', function() {
10091009
expect(Object.keys(ptData).sort()).toEqual([
10101010
'data', 'fullData', 'curveNumber', 'pointNumber', 'pointIndex', 'bbox',
1011-
'location', 'z', 'ct'
1011+
'location', 'z', 'ct', 'xPixel', 'yPixel'
10121012
].sort());
10131013
});
10141014

@@ -1036,7 +1036,7 @@ describe('Test geo interactions', function() {
10361036
it('should contain the correct fields', function() {
10371037
expect(Object.keys(ptData).sort()).toEqual([
10381038
'data', 'fullData', 'curveNumber', 'pointNumber', 'pointIndex', 'bbox',
1039-
'location', 'z', 'ct'
1039+
'location', 'z', 'ct', 'xPixel', 'yPixel'
10401040
].sort());
10411041
});
10421042

@@ -1068,7 +1068,7 @@ describe('Test geo interactions', function() {
10681068
it('should contain the correct fields', function() {
10691069
expect(Object.keys(ptData).sort()).toEqual([
10701070
'data', 'fullData', 'curveNumber', 'pointNumber', 'pointIndex', 'bbox',
1071-
'location', 'z', 'ct'
1071+
'location', 'z', 'ct', 'xPixel', 'yPixel'
10721072
].sort());
10731073
});
10741074

@@ -1937,7 +1937,7 @@ describe('Test event property of interactions on a geo plot:', function() {
19371937
expect(Object.keys(pt).sort()).toEqual([
19381938
'data', 'fullData', 'curveNumber', 'pointNumber', 'pointIndex', 'bbox',
19391939
'lon', 'lat',
1940-
'location', 'text', 'marker.size'
1940+
'location', 'text', 'marker.size', 'xPixel', 'yPixel'
19411941
].sort());
19421942

19431943
expect(pt.curveNumber).toEqual(0, 'points[0].curveNumber');

test/jasmine/tests/pie_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ describe('pie hovering', function() {
10321032
'data', 'fullData',
10331033
'label', 'color', 'value',
10341034
'i', 'v', 'percent', 'text',
1035-
'bbox'
1035+
'bbox', 'xPixel', 'yPixel'
10361036
];
10371037

10381038
expect(typeof hoverData.points[0].bbox).toEqual('object');

0 commit comments

Comments
 (0)