Skip to content

Commit

Permalink
Fix ScrollableContainer test correctly, Thanks EAlexRojas.
Browse files Browse the repository at this point in the history
  • Loading branch information
edchat committed Apr 29, 2015
1 parent f1bfca7 commit 2d9122a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/unit/ScrollableContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ define([
var suite = {
name: "deliteful/ScrollableContainer: markup",
setup: function () {
register("my-scrolable-container", [ScrollableContainer], {});
},
beforeEach: function () {
container = document.createElement("div");
document.body.appendChild(container);
container.innerHTML = html;
register("my-scrolable-container", [ScrollableContainer], {});
register.parse();
register.deliver();
},
teardown: function () {
afterEach: function () {
container.parentNode.removeChild(container);
}
};
Expand Down Expand Up @@ -73,9 +75,6 @@ define([
w.scrollDirection = "none";
container.appendChild(w);
},
beforeEach: function () {
register.deliver();
},
teardown: function () {
container.parentNode.removeChild(container);
}
Expand Down

0 comments on commit 2d9122a

Please sign in to comment.