Skip to content

Commit 0e522a9

Browse files
committed
test: compatibility workaround for Firefox 38
1 parent 74173b4 commit 0e522a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/jasmine/tests/shapes_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ describe('Test shapes', function() {
414414
}
415415

416416
function getShapeNode(index) {
417-
return d3.selectAll('.shapelayer')
418-
.selectAll('path[data-index="' + index + '"')
419-
.node();
417+
return d3.selectAll('.shapelayer path').filter(function() {
418+
return +this.getAttribute('data-index') === index;
419+
}).node();
420420
}
421421

422422
function testShape(layoutShape, node) {

0 commit comments

Comments
 (0)