Skip to content

Commit d305cd4

Browse files
committed
fix layout image test (to pre-577 autosize constraints)
1 parent 8360ef9 commit d305cd4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/jasmine/tests/layout_images_test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ describe('Layout images', function() {
243243
y: 2,
244244
sizex: 1,
245245
sizey: 1
246-
}]
246+
}],
247+
width: 500,
248+
height: 400
247249
}).then(done);
248250
});
249251

@@ -268,7 +270,7 @@ describe('Layout images', function() {
268270

269271
var img = Plotly.d3.select('image');
270272

271-
expect([+img.attr('x'), +img.attr('y')]).toEqual([1160, -170]);
273+
expect([+img.attr('x'), +img.attr('y')]).toEqual([760, -120]);
272274

273275
Plotly.relayout(gd, update).then(function() {
274276
var newImg = Plotly.d3.select('image');

0 commit comments

Comments
 (0)