concluding UiHelper tests that are possible in headless jsdom at this time
This commit is contained in:
parent
ef6b6816b0
commit
d75cea856a
12
js/test.js
12
js/test.js
@ -913,6 +913,9 @@ describe('UiHelper', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('isVisible', function () {
|
describe('isVisible', function () {
|
||||||
|
// TODO As per https://github.com/tmpvar/jsdom/issues/1048 there is no layout support in jsdom, yet.
|
||||||
|
// once it is supported or a workaround is found, uncomment the section below
|
||||||
|
/*
|
||||||
before(function () {
|
before(function () {
|
||||||
$.PrivateBin.Helper.reset();
|
$.PrivateBin.Helper.reset();
|
||||||
});
|
});
|
||||||
@ -927,13 +930,16 @@ describe('UiHelper', function () {
|
|||||||
var clean = jsdom(
|
var clean = jsdom(
|
||||||
'<' + element + ' id="' + id + '"></' + element + '>'
|
'<' + element + ' id="' + id + '"></' + element + '>'
|
||||||
);
|
);
|
||||||
// TODO As per https://github.com/tmpvar/jsdom/issues/1048 there is no layout support in jsdom, yet.
|
var result = $.PrivateBin.UiHelper.isVisible($('#' + id));
|
||||||
// remove the "true || " below, once it is supported or a workaround is found
|
|
||||||
var result = true || $.PrivateBin.UiHelper.isVisible($('#' + id));
|
|
||||||
clean();
|
clean();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('scrollTo', function () {
|
||||||
|
// TODO Did not find a way to test that, see isVisible test above
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user