Skip to content

Commit c006a90

Browse files
committed
remove error when in headless mode
1 parent 6cc2ecc commit c006a90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/jasmine/assets/mouse_event.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ var Lib = require('../../../src/lib');
22

33
module.exports = function(type, x, y, opts) {
44
var visibility = document.visibilityState;
5-
if(visibility && visibility !== 'visible') {
6-
throw new Error('document.visibilityState = "' + visibility + '" - Please make the window visible.');
7-
}
5+
// if(visibility && visibility !== 'visible') {
6+
// throw new Error('document.visibilityState = "' + visibility + '" - Please make the window visible.');
7+
// }
88

99
var fullOpts = {
1010
bubbles: true,

test/jasmine/tests/sankey_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ function assertLabel(content, style) {
15131513

15141514
function assertMultipleLabels(contentArray, styleArray) {
15151515
var g = d3SelectAll('.hovertext');
1516-
expect(g.size()).toEqual(contentArray.length, 'wrong number of hoverlabels, expected to find ' + contentArray.length);
1516+
expect(g.size()).toEqual(contentArray.length);
15171517
g.each(function(el, i) {
15181518
_assertLabelGroup(d3Select(this), contentArray[i], styleArray[i]);
15191519
});

0 commit comments

Comments
 (0)