You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
594 B

11 years ago
(function (Ply) {
module('Ply.stack');
asyncTest('2x', function () {
new Ply('foo', { effect: 'slide' }).open().then(function (foo) {
new Ply('bar', { effect: 'fall' }).open().then(function (bar) {
ok(!foo.layerEl.parentNode, 'foo.parent == null');
ok(!bar.overlayBoxEl.parentNode, 'bar.parent == null');
Ply.stack.last.close().then(function () {
ok(!!foo.layerEl.parentNode, 'foo.parent != null');
ok(!!bar.overlayBoxEl.parentNode, 'bar.parent != null');
Ply.stack.last.close().then(function () {
start();
});
});
11 years ago
});
});
});
})(Ply);