Skip to content

Commit 7146543

Browse files
committed
clean up image sources to avoid extraneous log messages
1 parent bd62f54 commit 7146543

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jasmine/tests/layout_images_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('Layout images', function() {
107107
it('should draw images on the right layers', function() {
108108

109109
Plotly.plot(gd, data, { images: [{
110-
source: 'imageabove',
110+
source: jsLogo,
111111
layer: 'above'
112112
}]});
113113

@@ -116,7 +116,7 @@ describe('Layout images', function() {
116116
destroyGraphDiv();
117117
gd = createGraphDiv();
118118
Plotly.plot(gd, data, { images: [{
119-
source: 'imagebelow',
119+
source: jsLogo,
120120
layer: 'below'
121121
}]});
122122

@@ -125,7 +125,7 @@ describe('Layout images', function() {
125125
destroyGraphDiv();
126126
gd = createGraphDiv();
127127
Plotly.plot(gd, data, { images: [{
128-
source: 'imagesubplot',
128+
source: jsLogo,
129129
layer: 'below',
130130
xref: 'x',
131131
yref: 'y'
@@ -162,9 +162,9 @@ describe('Layout images', function() {
162162
describe('with anchors and sizing', function() {
163163

164164
function testAspectRatio(xAnchor, yAnchor, sizing, expected) {
165-
var anchorName = xAnchor + yAnchor;
165+
// var anchorName = xAnchor + yAnchor;
166166
Plotly.plot(gd, data, { images: [{
167-
source: anchorName,
167+
source: jsLogo,
168168
xanchor: xAnchor,
169169
yanchor: yAnchor,
170170
sizing: sizing
@@ -430,7 +430,7 @@ describe('images log/linear axis changes', function() {
430430
],
431431
layout: {
432432
images: [{
433-
source: 'https://images.plot.ly/language-icons/api-home/python-logo.png',
433+
source: pythonLogo,
434434
x: 1,
435435
y: 1,
436436
xref: 'x',

0 commit comments

Comments
 (0)