From 9b4e27a91cbb5808efcdff400797d62b862507f2 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 1 Mar 2017 19:50:21 -0800 Subject: [PATCH] MWWikitextStringTransferHandler.test: Don't pass around an invalid doc Even if it sounds cool, it isn't. Change-Id: Ib6612bc0ea8d66fc1964b3a782ad56356da65952 --- .../ve.ui.MWWikitextStringTransferHandler.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {