1
1
var Plotly = require ( '@lib/index' ) ;
2
2
var Lib = require ( '@src/lib' ) ;
3
3
4
- var helpers = require ( '@src/snapshot/helpers' ) ;
5
- var getImageSize = require ( '@src/traces/image/helpers' ) . getImageSize ;
4
+ // var helpers = require('@src/snapshot/helpers');
5
+ // var getImageSize = require('@src/traces/image/helpers').getImageSize;
6
6
7
7
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
8
8
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
@@ -137,8 +137,8 @@ describe('Plotly.downloadImage', function() {
137
137
} )
138
138
. then ( done , done . fail ) ;
139
139
} , LONG_TIMEOUT_INTERVAL ) ;
140
-
141
- it ( 'should produce right output in Safari' , function ( done ) {
140
+ /*
141
+ it('should produce right output in Old Safari', function(done) {
142
142
spyOn(Lib, 'isSafari').and.callFake(function() { return true; });
143
143
spyOn(helpers, 'octetStream');
144
144
@@ -157,7 +157,7 @@ describe('Plotly.downloadImage', function() {
157
157
.then(done, done.fail);
158
158
});
159
159
160
- it ( 'should default width & height for downloadImage to match with the live graph' , function ( done ) {
160
+ it('should default width & height for downloadImage to match with the live graph on Old Safari ', function(done) {
161
161
spyOn(Lib, 'isSafari').and.callFake(function() { return true; });
162
162
spyOn(helpers, 'octetStream');
163
163
@@ -182,6 +182,7 @@ describe('Plotly.downloadImage', function() {
182
182
})
183
183
.then(done, done.fail);
184
184
});
185
+ */
185
186
} ) ;
186
187
187
188
function downloadTest ( gd , format ) {
0 commit comments