Skip to content

Commit 0dd85fa

Browse files
committed
Let centered hover info tests be synchronous #2154
- No reason to run them asynchronously.
1 parent 869e054 commit 0dd85fa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/jasmine/tests/hover_label_test.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1179,24 +1179,20 @@ describe('hover info', function() {
11791179
expect(elem1BB.top - elem2BB.top).toBeWithin(0, tolerance, msg);
11801180
}
11811181

1182-
it('renders labels inside boxes', function(done) {
1182+
it('renders labels inside boxes', function() {
11831183
_hover(gd, 300, 150);
11841184

11851185
var nodes = ensureCentered(centeredHoverInfoNodes());
11861186
assertElemInside(nodes.primaryText, nodes.primaryBox, 'Primary text inside box');
11871187
assertElemInside(nodes.secondaryText, nodes.secondaryBox, 'Secondary text inside box');
1188-
1189-
done();
11901188
});
11911189

1192-
it('renders secondary info box right to primary info box', function(done) {
1190+
it('renders secondary info box right to primary info box', function() {
11931191
_hover(gd, 300, 150);
11941192

11951193
var nodes = ensureCentered(centeredHoverInfoNodes());
11961194
assertElemRightTo(nodes.secondaryBox, nodes.primaryBox, 'Secondary box right to primary box');
11971195
assertTopsAligned(nodes.secondaryBox, nodes.primaryBox, 'Top edges of primary and secondary boxes aligned');
1198-
1199-
done();
12001196
});
12011197
});
12021198
});

0 commit comments

Comments
 (0)