mediawiki-extensions-Visual.../modules/ve
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 Create MWResizeableNode mixin to control defaultSize flag 2013-07-16 23:13:40 +01:00
dm Continue links 2013-07-16 00:29:55 +00:00
init The great directory split of 2013 2013-07-02 20:51:38 -07:00
test Fix ordering of store items in converter tests 2013-07-16 19:06:48 -07:00
ui Merge "Adjust padding for surfaces inside dialogs" 2013-07-16 00:37:22 +00:00
ve.BranchNode.js
ve.debug.js
ve.Document.js Fix selectNodes() bug with empty non-content branch nodes 2013-06-17 19:09:12 +00:00
ve.Element.js Make local overlays local to surface and remove insane z-indexes 2013-07-02 19:35:43 +00:00
ve.EventEmitter.js oojs: Integrate with OOJS v1.0.0 2013-06-06 17:29:55 +02:00
ve.Factory.js
ve.js Make loading VE work on Opera again, attempt two 2013-06-29 15:02:00 +02:00
ve.LeafNode.js
ve.NamedClassFactory.js
ve.Node.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.Range.js
ve.Registry.js