describe('Resize watching', function () {
	it('should recalculate offsets when the document is resized', function (done) {
		var offset = sinon.spy(function () {
			return 0;
		});

		var mark = Scrollmarks.add({
			element: document.getElementById('static'),
			callback: function () {},
			offset: offset
		});

		var offsetCalls = offset.callCount;
		window.dispatchEvent(new CustomEvent('resize'));
		
		// not called straight away
		offset.should.have.callCount(offsetCalls);
		// only after the timeout set by config.resizeThrottle
		setTimeout(function () {
			offset.should.have.callCount(offsetCalls + 1);
			Scrollmarks.remove(mark);
			done();
		}, getTimeout('resize'));
	});
})
@@ -35,16 +35,120 @@
 on () %7B%0A
+%09before(function () %7B%0A%09%09fixture.setBase(%22test/fixtures%22);%0A%09%09fixture.load(%22static_position.html%22);%0A%09%7D);%0A%0A
 %09it('sho

Fix resize test