Skip to content

Commit 27d84f1

Browse files
committed
Colorbar test case : use mock data.
1 parent e889dd1 commit 27d84f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/jasmine/tests/colorbar_test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -529,19 +529,19 @@ describe('Test colorbar:', function() {
529529
return attrs;
530530
}
531531

532-
var z = [[1, 10], [100, 1000]];
532+
var mock = require('../../image/mocks/contour_transposed');
533+
var z = mock.data[0].z;
533534

534535
var expectedAttrs;
535536
var actualAttrs;
536537

537-
Plotly.newPlot(gd, [{type: 'contour', z: z}])
538+
Plotly.newPlot(gd, mock)
538539
.then(function() {
539540
expectedAttrs = getCBFillAttributes();
540-
541-
return Plotly.newPlot(gd, [{type: 'heatmap', z: z}])
542-
.then(function() {
543-
return Plotly.react(gd, [{type: 'contour', z: z}]);
544-
});
541+
return Plotly.newPlot(gd, [{type: 'heatmap', z: z}]);
542+
})
543+
.then(function() {
544+
return Plotly.react(gd, mock);
545545
})
546546
.then(function() {
547547
actualAttrs = getCBFillAttributes();

0 commit comments

Comments
 (0)