Skip to content

Commit

Permalink
Replace Labuda's photography of droplets by one from public domain
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Aug 19, 2020
1 parent 3717cbe commit b586a86
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Binary file added test/image/baselines/image_astronaut_source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
1 change: 1 addition & 0 deletions test/image/mocks/image_astronaut_source.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion test/image/mocks/image_labuda_droplets_source.json

This file was deleted.

16 changes: 8 additions & 8 deletions test/jasmine/tests/image_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ describe('image plot', function() {
});

it('renders pixelated image when source is defined', function(done) {
var mock = require('@mocks/image_labuda_droplets_source.json');
var mock = require('@mocks/image_astronaut_source.json');
var mockCopy = Lib.extendDeep({}, mock);
Plotly.newPlot(gd, mockCopy)
.then(function(gd) {
Expand All @@ -427,7 +427,7 @@ describe('image plot', function() {
['yaxis.range', [0, 50]]
].forEach(function(attr) {
it('does not renders pixelated image when the axes are not compatible', function(done) {
var mock = require('@mocks/image_labuda_droplets_source.json');
var mock = require('@mocks/image_astronaut_source.json');
var mockCopy = Lib.extendDeep({}, mock);
Plotly.newPlot(gd, mockCopy)
.then(function(gd) {
Expand Down Expand Up @@ -631,8 +631,8 @@ describe('image hover:', function() {
});
});

describe('for `image_labuda_droplets_source` defined by source', function() {
var mock = require('@mocks/image_labuda_droplets_source.json');
describe('for `image_astronaut_source` defined by source', function() {
var mock = require('@mocks/image_astronaut_source.json');
beforeAll(function() {
gd = createGraphDiv();
});
Expand All @@ -647,10 +647,10 @@ describe('image hover:', function() {
[
['x', '205'],
['y', '125'],
['color', '[78, 77, 83, 1]'],
['color[0]', '78'],
['z', '[78, 77, 83, 255]'],
['z[0]', '78']
['color', '[202, 148, 125, 1]'],
['color[0]', '202'],
['z', '[202, 148, 125, 255]'],
['z[0]', '202']
].forEach(function(test) {
it('should support hovertemplate variable ' + test[0], function(done) {
var mockCopy = Lib.extendDeep({}, mock);
Expand Down

0 comments on commit b586a86

Please sign in to comment.