Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0490d6

Browse files
committed
try adding 'ie9' tests
1 parent 3e81eca commit c0490d6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

test/jasmine/tests/ie9_test.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
var Plotly = require('@lib');
2+
3+
var createGraphDiv = require('../assets/create_graph_div');
4+
var destroyGraphDiv = require('../assets/destroy_graph_div');
5+
6+
describe('IE9 environment', function() {
7+
8+
var uint8Array = window.Uint8Array;
9+
10+
beforeAll(function() {
11+
window.Uint8Array = undefined;
12+
});
13+
14+
afterAll(function() {
15+
window.Uint8Array = uint8Array;
16+
});
17+
18+
afterEach(function() {
19+
destroyGraphDiv();
20+
});
21+
22+
it('heatmaps with smoothing should work', function(done) {
23+
var gd = createGraphDiv();
24+
var data = [{
25+
type: 'heatmap',
26+
z: [[1, 2, 3], [2, 1, 2]],
27+
zsmooth: 'best'
28+
}];
29+
30+
Plotly.plot(gd, data).then(done);
31+
});
32+
});

0 commit comments

Comments
 (0)