;
				});
			});

			it("should update depth", function(done) {
				var t = document.querySelector("#test2"),
					s = sinon.spy(t, "_updateDepth"),
					origZIndex = t.style.zIndex,
					afterZIndex = null;

				t.stackType = "modal";

				t.async(function() {
					should.equal(s.called, true);
					afterZIndex = t.style.zIndex;
					afterZIndex.should.not.be.origZIndex;
					done();
				});
			});

			it("should apply z-index on stackTarget, if specified", function() {
				var t = document.querySelector("