mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
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:
parent
6fd475e8ec
commit
9b4e27a91c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue