Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Note that the actual testing is done in ScrollableContainer-shared.
var container, MyScrollableContainer;
/*jshint multistr: true */
var html = " \
<div style="width: 2000px; height: 2000px;" id="sc1content"></div> \
\
\
\
\
";
// Markup use-case
ScrollableSharedTests.containerCSSClassName = "d-scrollable-container";
registerSuite("deliteful/ScrollableContainer: markup", {
before: function () {
register("my-scrollable-container", [ScrollableContainer], {});
},
beforeEach: function () {
container = document.createElement("div");
document.body.appendChild(container);
container.innerHTML = html;
register.deliver();
},
afterEach: function () {
container.parentNode.removeChild(container);
},