Update to use jsdom v4 (document.defaultView vs. document.parentWindow).

This commit is contained in:
Russell Vea 2015-02-26 16:56:26 -10:00
parent 15813107c0
commit c0c8079913

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.parentWindow,
window = document.defaultView,
navigator = window.navigator,
HTMLCanvasElement = Canvas,
Image = Canvas.Image;