mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "MWWikitextStringTransferHandler.test: Don't pass around an invalid doc"
This commit is contained in:
commit
59d52158a9
|
@ -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