Skip to content

Commit f7dd63e

Browse files
committed
add extra msg to selection outline node cnt assertions
1 parent 4240a41 commit f7dd63e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/jasmine/tests/select_test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ function drag(path, options) {
4242
mouseEvent('mouseup', path[len - 1][0], path[len - 1][1], options);
4343
}
4444

45-
function assertSelectionNodes(cornerCnt, outlineCnt) {
45+
function assertSelectionNodes(cornerCnt, outlineCnt, _msg) {
46+
var msg = _msg ? ' - ' + _msg : '';
47+
4648
expect(d3.selectAll('.zoomlayer > .zoombox-corners').size())
47-
.toBe(cornerCnt, 'selection corner count');
49+
.toBe(cornerCnt, 'selection corner count' + msg);
4850
expect(d3.selectAll('.zoomlayer > .select-outline').size())
49-
.toBe(outlineCnt, 'selection outline count');
51+
.toBe(outlineCnt, 'selection outline count' + msg);
5052
}
5153

5254
var selectingCnt, selectingData, selectedCnt, selectedData, deselectCnt, doubleClickData;

0 commit comments

Comments
 (0)