mediawiki-extensions-Visual.../modules/ve-mw/tests/dm
Roan Kattouw e4d2d4785e ve.dm.MWImageModel: Require parent document
Add a parentDoc parameter to the MWImageModel constructor and use
it to inherit language, direction and HTML document. Remove
getLang(), setLang(), getDir() and setDir() whose only purpose
was to propagate the language and direction from the parent document
in a hacky way.

Also add a parentDoc parameter to newFromImageAttributes(), replacing
the lang and dir parameters. Remove the unused and ill-conceived
caption parameter.

This causes caption documents to always have an HTML document
for URL resolution. Previously, this worked when editing existing
images because a document generated by cloneFromRange() (which
propagates the HTML document) was passed into setCaptionDocument(),
but it didn't work when creating new images.

Bug: T109599
Change-Id: Ida36862092cd779ffc2f04c0ecbc1164f8d71453
2015-08-27 00:09:21 -07:00
..
nodes build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00
ve.dm.Converter.test.js build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00
ve.dm.Document.test.js build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00
ve.dm.InternalList.test.js build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00
ve.dm.mwExample.js build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00
ve.dm.MWImageModel.test.js ve.dm.MWImageModel: Require parent document 2015-08-27 00:09:21 -07:00
ve.dm.SurfaceFragment.test.js Move test registry hacks into QUnit setup/teardown hooks 2015-06-02 14:36:10 +01:00
ve.dm.Transaction.test.js build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00