Skip to content

Commit 5033fd9

Browse files
committed
rename local assert -> countCanvases
1 parent 51113b7 commit 5033fd9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jasmine/tests/gl_plot_interact_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ describe('Test gl plot side effects', function() {
584584
it('should be able to replot from a blank graph', function(done) {
585585
var gd = createGraphDiv();
586586

587-
function assert(cnt) {
587+
function countCanvases(cnt) {
588588
var nodes = d3.selectAll('canvas');
589589
expect(nodes.size()).toEqual(cnt);
590590
}
@@ -596,23 +596,23 @@ describe('Test gl plot side effects', function() {
596596
}];
597597

598598
Plotly.plot(gd, []).then(function() {
599-
assert(0);
599+
countCanvases(0);
600600

601601
return Plotly.plot(gd, data);
602602
}).then(function() {
603-
assert(1);
603+
countCanvases(1);
604604

605605
return Plotly.purge(gd);
606606
}).then(function() {
607-
assert(0);
607+
countCanvases(0);
608608

609609
return Plotly.plot(gd, data);
610610
}).then(function() {
611-
assert(1);
611+
countCanvases(1);
612612

613613
return Plotly.deleteTraces(gd, [0]);
614614
}).then(function() {
615-
assert(0);
615+
countCanvases(0);
616616

617617
return Plotly.purge(gd);
618618
}).then(done);

0 commit comments

Comments
 (0)