Reset document.title after each spec to prevent test pollution

This commit is contained in:
Nathan Sobo
2012-04-13 15:11:33 -06:00
parent c673c5114e
commit 6c5b2a47ec

View File

@@ -7,11 +7,14 @@ Point = require 'point'
require 'window'
window.showConsole()
defaultTitle = document.title
beforeEach ->
window.resetTimeouts()
afterEach ->
$('#jasmine-content').empty()
document.title = defaultTitle
window.keymap.bindKeys '*', 'meta-w': 'close'
$(document).on 'close', -> window.close()