mediawiki-extensions-Visual.../modules/ve/test
Roan Kattouw 779099e660 Fix ordering of store items in converter tests
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
2013-07-16 19:06:48 -07:00
..
ce The great directory split of 2013 2013-07-02 20:51:38 -07:00
dm Merge "Extend empty document check to check for meta-only data" 2013-07-15 16:18:50 +00:00
init The great directory split of 2013 2013-07-02 20:51:38 -07:00
ui The great directory split of 2013 2013-07-02 20:51:38 -07:00
example.png Optimise png images with optipng 2013-07-05 09:47:12 +00:00
index.php Make link inspector re-usable by splitting it up 2013-07-12 17:58:04 +00:00
ve.BranchNode.test.js
ve.Document.test.js
ve.Element.test.js Make local overlays local to surface and remove insane z-indexes 2013-07-02 19:35:43 +00:00
ve.Factory.test.js
ve.LeafNode.test.js
ve.Node.test.js Store DM nodes in InternalList 2013-06-03 22:10:07 +01:00
ve.qunit.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.Range.test.js
ve.test.js The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.test.utils.js Fix ordering of store items in converter tests 2013-07-16 19:06:48 -07:00