Skip to content

Commit c45292b

Browse files
committed
remove now redundant auto textpositions from bar and waterfall tests
1 parent 96fd015 commit c45292b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

test/jasmine/tests/bar_test.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,6 @@ describe('A bar plot', function() {
13641364
y: [20, 14, 23, 10, 59, 15],
13651365
text: [20, 14, 23, 10, 59, 15],
13661366
type: 'bar',
1367-
textposition: 'auto',
13681367
marker: {
13691368
color: ['#ee1', '#eee', '#333', '#9467bd', '#dda', '#922'],
13701369
}
@@ -1877,8 +1876,7 @@ describe('A bar plot', function() {
18771876
type: 'bar',
18781877
x: ['Product A', 'Product B', 'Product C'],
18791878
y: [20, 14, 23],
1880-
text: [20, 14, 23],
1881-
textposition: 'auto'
1879+
text: [20, 14, 23]
18821880
}])
18831881
.then(function() {
18841882
_assertNumberOfBarTextNodes(3);

test/jasmine/tests/waterfall_test.js

-5
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ describe('Waterfall.supplyDefaults', function() {
150150
it('should coerce textinfo when textposition is not none', function() {
151151
traceIn = {
152152
y: [1, 2, 3],
153-
textposition: 'auto',
154153
textinfo: 'text'
155154
};
156155
supplyDefaults(traceIn, traceOut, defaultColor, {});
@@ -742,7 +741,6 @@ describe('A waterfall plot', function() {
742741
y: [20, 14, 23, 10, 59, 15],
743742
text: [20, 14, 23, 10, 59, 15],
744743
type: 'waterfall',
745-
textposition: 'auto',
746744
marker: {
747745
color: ['#ee1', '#eee', '#333', '#9467bd', '#dda', '#922'],
748746
}
@@ -785,7 +783,6 @@ describe('A waterfall plot', function() {
785783
}, {
786784
width: [0.4, 0.6, 0.8, 1],
787785
text: ['Three', 2, 'inside text', 0],
788-
textposition: 'auto',
789786
textfont: { size: [10] },
790787
y: [3, 2, 1, 0],
791788
x: [1, 2, 3, 4],
@@ -799,7 +796,6 @@ describe('A waterfall plot', function() {
799796
type: 'waterfall'
800797
}, {
801798
text: [0, 'outside text', -3, -2],
802-
textposition: 'auto',
803799
y: [0, -0.25, -3, -2],
804800
x: [1, 2, 3, 4],
805801
type: 'waterfall'
@@ -1150,7 +1146,6 @@ describe('A waterfall plot', function() {
11501146
x: ['Product A', 'Product B', 'Product C'],
11511147
y: [20, 14, 23],
11521148
text: [20, 14, 23],
1153-
textposition: 'auto'
11541149
}])
11551150
.then(function() {
11561151
_assertNumberOfWaterfallTextNodes(3);

0 commit comments

Comments
 (0)