Skip to content

Commit 125c9c0

Browse files
committed
adapt pie and sunburst jasmine tests using new scales
1 parent a178028 commit 125c9c0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/jasmine/tests/pie_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,15 +2010,15 @@ describe('pie uniformtext', function() {
20102010
Plotly.plot(gd, fig)
20112011
.then(assertTextSizes('without uniformtext', {
20122012
fontsizes: [12, 12, 12, 12, 12, 12, 12, 12],
2013-
scales: [1, 1, 1, 1, 1, 1, 1, 0.58],
2013+
scales: [1, 1, 1, 1, 1, 1, 1, 0.52],
20142014
}))
20152015
.then(function() {
20162016
fig.layout.uniformtext = {mode: 'hide'}; // default with minsize=0
20172017
return Plotly.react(gd, fig);
20182018
})
20192019
.then(assertTextSizes('using mode: "hide"', {
20202020
fontsizes: [12, 12, 12, 12, 12, 12, 12, 12],
2021-
scales: [0.58, 0.58, 0.58, 0.58, 0.58, 0.58, 0.58, 0.58],
2021+
scales: [0.52, 0.52, 0.52, 0.52, 0.52, 0.52, 0.52, 0.52],
20222022
}))
20232023
.then(function() {
20242024
fig.layout.uniformtext.minsize = 9; // set a minsize less than trace font size
@@ -2058,7 +2058,7 @@ describe('pie uniformtext', function() {
20582058
})
20592059
.then(assertTextSizes('clear uniformtext', {
20602060
fontsizes: [12, 12, 12, 12, 12, 12, 12, 12],
2061-
scales: [1, 1, 1, 1, 1, 1, 1, 0.58],
2061+
scales: [1, 1, 1, 1, 1, 1, 1, 0.52],
20622062
}))
20632063
.catch(failTest)
20642064
.then(done);

test/jasmine/tests/sunburst_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,7 +1975,7 @@ describe('sunburst inside text orientation', function() {
19751975
return Plotly.react(gd, fig);
19761976
})
19771977
.then(assertTextRotations('using "tangential"', {
1978-
rotations: [0, 0, -42, -78]
1978+
rotations: [0, 30, -42, -78]
19791979
}))
19801980
.then(function() {
19811981
fig.data[0].insidetextorientation = 'auto';
@@ -2060,15 +2060,15 @@ describe('sunburst uniformtext', function() {
20602060
Plotly.plot(gd, fig)
20612061
.then(assertTextSizes('without uniformtext', {
20622062
fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
2063-
scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 0.58],
2063+
scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 0.52],
20642064
}))
20652065
.then(function() {
20662066
fig.layout.uniformtext = {mode: 'hide'}; // default with minsize=0
20672067
return Plotly.react(gd, fig);
20682068
})
20692069
.then(assertTextSizes('using mode: "hide"', {
20702070
fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
2071-
scales: [0.58, 0.58, 0.58, 0.58, 0.58, 0.58, 0.58, 0.58, 0.58, 0.58],
2071+
scales: [0.52, 0.52, 0.52, 0.52, 0.52, 0.52, 0.52, 0.52, 0.52, 0.52],
20722072
}))
20732073
.then(function() {
20742074
fig.layout.uniformtext.minsize = 9; // set a minsize less than trace font size
@@ -2108,7 +2108,7 @@ describe('sunburst uniformtext', function() {
21082108
})
21092109
.then(assertTextSizes('clear uniformtext', {
21102110
fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
2111-
scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 0.58],
2111+
scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 0.52],
21122112
}))
21132113
.catch(failTest)
21142114
.then(done);

0 commit comments

Comments
 (0)