MWWikitextStringTransferHandler.test: Don't pass around an invalid doc

Even if it sounds cool, it isn't.

Change-Id: Ib6612bc0ea8d66fc1964b3a782ad56356da65952
This commit is contained in:
James D. Forrester 2017-03-01 19:50:21 -08:00 committed by Catrope
parent 6fd475e8ec
commit 9b4e27a91c

View file

@ -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 {