Skip to content

Commit 43b95d8

Browse files
committed
Swap image source
1 parent b72e36d commit 43b95d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jasmine/tests/transition_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ function runTests(transitionDuration) {
9393
});
9494

9595
it('transitions an image', function(done) {
96-
var whitepx = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
97-
var blackpx = 'data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=';
96+
var jsLogo = 'https://images.plot.ly/language-icons/api-home/js-logo.png';
97+
var pythonLogo = 'https://images.plot.ly/language-icons/api-home/python-logo.png';
9898

9999
function imageel() {
100100
return gd._fullLayout._imageUpperLayer.select('image').node();
@@ -104,12 +104,12 @@ function runTests(transitionDuration) {
104104
}
105105
var p1, p2, e1, e2;
106106

107-
Plotly.relayout(gd, {images: [{x: 0, y: 0, source: whitepx}]}).then(function() {
107+
Plotly.relayout(gd, {images: [{x: 0, y: 0, source: jsLogo}]}).then(function() {
108108
p1 = imagesrc();
109109
e1 = imageel();
110110

111111
return Plots.transition(gd, null, {
112-
'images[0].source': blackpx,
112+
'images[0].source': pythonLogo,
113113
}, [],
114114
{redraw: true, duration: transitionDuration},
115115
{duration: transitionDuration, easing: 'cubic-in-out'}

0 commit comments

Comments
 (0)