Skip to content

Commit c0880c3

Browse files
committed
adjust jasmine tests
1 parent 0147edc commit c0880c3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/jasmine/tests/scattergl_select_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ describe('Test displayed selections:', function() {
479479
}
480480

481481
var mock = {
482+
config: { plotGlPixelRatio: 1 },
482483
data: [{
483484
x: x, y: y, type: 'scattergl', mode: 'markers'
484485
}],
@@ -522,6 +523,7 @@ describe('Test displayed selections:', function() {
522523
}
523524

524525
var mock = {
526+
config: { plotGlPixelRatio: 1 },
525527
data: [{
526528
x: x, y: y, type: 'scattergl', mode: 'markers',
527529
marker: {symbol: symbol, size: size, color: color}

test/jasmine/tests/scatterpolargl_test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ describe('Test scatterpolargl interactions:', function() {
235235
polar: {domain: {column: 1}},
236236
width: 400,
237237
height: 400
238+
}, {
239+
plotGlPixelRatio: 1
238240
})
239241
.then(function() {
240242
expect(countCanvases()).toBe(3);
@@ -415,7 +417,7 @@ describe('Test scatterpolargl autorange:', function() {
415417
type: 'scatterpolargl',
416418
mode: 'markers',
417419
r: r,
418-
marker: {size: 10}
420+
marker: {size: 5}
419421
}])
420422
.then(function() {
421423
expect(gd._fullLayout.polar.radialaxis.range)
@@ -434,7 +436,7 @@ describe('Test scatterpolargl autorange:', function() {
434436
}])
435437
.then(function() {
436438
expect(gd._fullLayout.polar.radialaxis.range)
437-
.toBeCloseToArray([0, 1.0465], 2, 'radial range');
439+
.toBeCloseToArray([0, 1.0975], 2, 'radial range');
438440
expect(cnt).toBe(1, '# of plot call');
439441
})
440442
.then(done, done.fail);

0 commit comments

Comments
 (0)