Skip to content

Commit 911b145

Browse files
committed
use Plotly.plots from the API in plots tests
1 parent 2feea90 commit 911b145

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jasmine/tests/plots_test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ describe('Test Plots', function() {
336336
gd.style.width = '400px';
337337
gd.style.height = '400px';
338338

339-
return Plots.resize(gd);
339+
return Plotly.Plots.resize(gd);
340340
})
341341
.then(done);
342342
});
@@ -390,7 +390,7 @@ describe('Test Plots', function() {
390390
expect(typeof gd.id).toBe('string');
391391
expect(gd.id).toBeTruthy();
392392

393-
Plots.resize(gd.id)
393+
Plotly.Plots.resize(gd.id)
394394
.then(done, done.fail);
395395
});
396396
});
@@ -412,7 +412,7 @@ describe('Test Plots', function() {
412412

413413
Plotly.newPlot(gd, [], {})
414414
.then(function() { _assert({l: 74, r: 74, t: 82, b: 66}); })
415-
.then(function() { return Plots.resize(gd); })
415+
.then(function() { return Plotly.Plots.resize(gd); })
416416
.then(function() { _assert({l: 74, r: 74, t: 82, b: 66}); })
417417
.then(done, done.fail);
418418
});
@@ -428,9 +428,9 @@ describe('Test Plots', function() {
428428
.then(function() {
429429
gd.style.width = '500px';
430430
gd.style.height = '500px';
431-
p.push(Plots.resize(gd));
432-
p.push(Plots.resize(gd));
433-
p.push(Plots.resize(gd));
431+
p.push(Plotly.Plots.resize(gd));
432+
p.push(Plotly.Plots.resize(gd));
433+
p.push(Plotly.Plots.resize(gd));
434434
return Promise.all(p);
435435
})
436436
.then(function(v) {

0 commit comments

Comments
 (0)