		var a = document.querySelector("#testPanel");
				a.state.should.equal(a.STATE_CLOSED);
				a.open();
				flush(function() {
					a._panel.style.clip.should.equal("auto");
					done();
				});
			});

			it("should update position on resize and scroll", function(done) {
				var a = document.querySelector("#testPanel"),
					s = sinon.spy(a, "_updatePosition"),
					spoofResize = new Event('resize'),
					spoofScroll = new Event('scroll');

				a.open();
				window.dispatchEvent(spoofResize);
				window.di