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

This commit is contained in:
jenkins-bot 2017-03-02 05:56:23 +00:00 committed by Gerrit Code Review
commit 59d52158a9

View file

@ -20,7 +20,7 @@ function runWikitextStringHandlerTest( assert, server, string, mimeType, expecte
var handler, i, j, name, var handler, i, j, name,
done = assert.async(), done = assert.async(),
item = ve.ui.DataTransferItem.static.newFromString( string, mimeType ), item = ve.ui.DataTransferItem.static.newFromString( string, mimeType ),
doc = new ve.dm.Document( [] ), doc = ve.dm.Document.static.newBlankDocument(),
mockSurface = { mockSurface = {
getModel: function () { getModel: function () {
return { return {