Skip to content

Commit b4d2bef

Browse files
committed
update jasmine tests
1 parent 753858a commit b4d2bef

File tree

3 files changed

+1
-64
lines changed

3 files changed

+1
-64
lines changed

test/jasmine/tests/funnelarea_test.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ describe('Funnelarea traces', function() {
323323
it('shows title top left', function(done) {
324324
Plotly.newPlot(gd, [{
325325
values: [3, 2, 1],
326-
title: { text: 'Test<BR>Title', position: 'top center', font: { size: 12 } },
326+
title: { text: 'Test<BR>Title', position: 'top left', font: { size: 12 } },
327327
type: 'funnelarea',
328328
textinfo: 'none'
329329
}], {height: 300, width: 300})
@@ -568,29 +568,6 @@ describe('Funnelarea traces', function() {
568568
.then(done, done.fail);
569569
});
570570

571-
it('should be able to restyle title despite using the deprecated attributes', function(done) {
572-
Plotly.newPlot(gd, [{
573-
type: 'funnelarea',
574-
values: [1, 2, 3],
575-
title: { text: 'yo', position: 'top left', font: { color: 'blue' } },
576-
}])
577-
.then(function() {
578-
_assertTitle('base', 'yo', 'rgb(0, 0, 255)');
579-
_verifyTitle(true, false, true, false, false);
580-
581-
return Plotly.restyle(gd, {
582-
title: { text: 'oy' },
583-
'title.font.color': 'red',
584-
'title.position': 'top right'
585-
});
586-
})
587-
.then(function() {
588-
_assertTitle('base', 'oy', 'rgb(255, 0, 0)');
589-
_verifyTitle(false, true, true, false, false);
590-
})
591-
.then(done, done.fail);
592-
});
593-
594571
it('should be able to react with new text colors', function(done) {
595572
Plotly.newPlot(gd, [{
596573
type: 'funnelarea',

test/jasmine/tests/pie_test.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -786,29 +786,6 @@ describe('Pie traces', function() {
786786
.then(done, done.fail);
787787
});
788788

789-
it('should be able to restyle title despite using the deprecated attributes', function(done) {
790-
Plotly.newPlot(gd, [{
791-
type: 'pie',
792-
values: [1, 2, 3],
793-
title: { text: 'yo', font: { color: 'blue' }, position: 'top left' }
794-
}])
795-
.then(function() {
796-
_assertTitle('base', 'yo', 'rgb(0, 0, 255)');
797-
_verifyTitle(true, false, true, false, false);
798-
799-
return Plotly.restyle(gd, {
800-
title: { text: 'oy' },
801-
'title.font.color': 'red',
802-
'title.position': 'bottom right'
803-
});
804-
})
805-
.then(function() {
806-
_assertTitle('base', 'oy', 'rgb(255, 0, 0)');
807-
_verifyTitle(false, true, false, true, false);
808-
})
809-
.then(done, done.fail);
810-
});
811-
812789
it('should be able to react with new text colors', function(done) {
813790
Plotly.newPlot(gd, [{
814791
type: 'pie',

test/jasmine/tests/titles_test.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -619,23 +619,6 @@ describe('Titles can be updated', function() {
619619
'xaxis.title.text': NEW_XTITLE,
620620
'yaxis.title.text': NEW_YTITLE
621621
}
622-
},
623-
{
624-
desc: 'despite passing title only as a string (backwards-compatibility)',
625-
update: {
626-
title: NEW_TITLE,
627-
xaxis: {title: NEW_XTITLE},
628-
yaxis: {title: NEW_YTITLE}
629-
}
630-
},
631-
{
632-
desc: 'despite passing title only as a string using string attributes ' +
633-
'(backwards-compatibility)',
634-
update: {
635-
title: NEW_TITLE,
636-
'xaxis.title': NEW_XTITLE,
637-
'yaxis.title': NEW_YTITLE
638-
}
639622
}
640623
].forEach(function(testCase) {
641624
it('via `Plotly.relayout` ' + testCase.desc, function(done) {

0 commit comments

Comments
 (0)