diff --git a/modules/ve-mw/tests/ui/datatransferhandlers/ve.ui.MWWikitextStringTransferHandler.test.js b/modules/ve-mw/tests/ui/datatransferhandlers/ve.ui.MWWikitextStringTransferHandler.test.js index 8e1184b7f4..38ebdfd78b 100644 --- a/modules/ve-mw/tests/ui/datatransferhandlers/ve.ui.MWWikitextStringTransferHandler.test.js +++ b/modules/ve-mw/tests/ui/datatransferhandlers/ve.ui.MWWikitextStringTransferHandler.test.js @@ -20,7 +20,7 @@ function runWikitextStringHandlerTest( assert, server, string, mimeType, expecte var handler, i, j, name, done = assert.async(), item = ve.ui.DataTransferItem.static.newFromString( string, mimeType ), - doc = new ve.dm.Document( [] ), + doc = ve.dm.Document.static.newBlankDocument(), mockSurface = { getModel: function () { return {