Fix incompatibility with jsdom 1.0.0-pre.1

Closes #513
This commit is contained in:
Jürg Lehni 2014-08-20 15:06:13 +02:00
parent bdc9ef7d27
commit 6faf61e6ef

View file

@ -22,7 +22,7 @@ var jsdom = require('jsdom'),
// Expose global browser variables and create a document and a window using
// jsdom, e.g. for import/exportSVG()
document = jsdom.jsdom('<html><body></body></html>'),
window = document.createWindow(),
window = document.parentWindow,
navigator = window.navigator,
HTMLCanvasElement = Canvas,
Image = Canvas.Image;