|
@ -136,7 +136,9 @@ describe('Popup', function () { |
|
|
describe('destroy', function () { |
|
|
describe('destroy', function () { |
|
|
|
|
|
|
|
|
it('removes frame from container', function () { |
|
|
it('removes frame from container', function () { |
|
|
|
|
|
assert.equal(this.container.children.length, 0); |
|
|
var popup = new Popup(this.container); |
|
|
var popup = new Popup(this.container); |
|
|
|
|
|
assert.equal(this.container.children.length, 1); |
|
|
popup.destroy(); |
|
|
popup.destroy(); |
|
|
assert.equal(this.container.children.length, 0); |
|
|
assert.equal(this.container.children.length, 0); |
|
|
}); |
|
|
}); |
|
|