mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
779099e660
In the DomFromData tests, we put the provided storeItems in the store first, then run preprocessAnnotations (which puts annotations in the store). However, in DataFromDom we ran preprocessAnnotations first (which puts annotations in the store), then ran getDataFromDom (which is expected to put the asserted store items in the store). Because the order was reversed between these two tests, it was impossible to write a test for an annotation whose toDataElement function adds to the store. Fix this by reordering the operations in the DataFromDom test, doing the conversion first and only then running preprocessAnnotations on the expected data. This preprocessAnnotations call will not write to the store if the test passes, because all annotations in the expected data should already have been put in the store by the conversion. Change-Id: I8f741d96fe12590fd711542794570fb95b1132d0 |
||
---|---|---|
.docs | ||
demos | ||
maintenance | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
AUTHORS.txt | ||
CODING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.txt | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
VisualEditor provides a visual editor for wiki pages. It is written in JavaScript and runs in a web browser. It uses the Parsoid parser to convert wikitext documents to annotated HTML which the VisualEditor is able to load, modify and emit back to Parsoid at which point it is converted back into wikitext. For more information about these projects, check out the wiki: * http://www.mediawiki.org/wiki/VisualEditor * http://www.mediawiki.org/wiki/Parsoid