mediawiki-extensions-Visual.../modules
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
..
jquery jquery.client: Update to upstream from 92f06b4a in mediawiki/core.git 2013-07-10 23:23:11 +02:00
oojs oojs: Integrate with OOJS v1.0.0 2013-06-06 17:29:55 +02:00
qunit
rangy
unicodejs Run UnicodeJS tests from Special:JavaScriptTest/qunit 2013-07-17 00:45:11 +02:00
ve Fix ordering of store items in converter tests 2013-07-16 19:06:48 -07:00
ve-mw Make beta notice more informative and increase CSS width. 2013-07-16 18:49:39 -07:00