mediawiki-extensions-Visual.../modules/ve/test
Catrope 04516bb02e Whitespace preservation was broken after the first run
The first run of getDomFromData() would preserve whitespace just fine,
but it blanked out the .veInternal.whitespace[1] element in certain
cases, contaminating the linear model and making the whitespace data
inconsistent. Subsequent runs of getDomFromData() would then refuse to
serialize that whitespace because the information about it was
inconsistent.

In getDomFromData(), we sometimes unset .veInternal.whitespace[1] (i.e.
set it to undefined) to prevent double processing. Because we're
potentially going to modify .veInternal, don't assign it by reference,
but copy the object.

Added tests asserting that the linear model is unchanged after calling
getDomFromData(), because that function should never modify
linear model data. This test failed in 4 cases (all whitespace-related)
before I added the copyObject() call.

Bug: 43543
Change-Id: Ic4c93510518163894201a693ab50331413715967
2013-04-17 11:28:05 +00:00
..
actions Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ce Create GeneratedContentNode which can store rendered HTML in IV store 2013-04-10 19:34:19 +01:00
dm Whitespace preservation was broken after the first run 2013-04-17 11:28:05 +00:00
init Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
example.png Test: Fix 404 errors in example images. 2013-04-02 23:52:02 +02:00
index.php Hybridise MWTemplateNode 2013-04-14 02:34:18 +00:00
ve.BranchNode.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Document.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.example.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Factory.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.LeafNode.test.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.Node.test.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.qunit.js Remove more periods 2013-03-20 22:55:50 +00:00
ve.Range.test.js Minor comment and licence fixes 2013-03-19 20:54:01 +00:00
ve.test.js Fix for custom hash with keys in different order 2013-04-09 00:20:44 +01:00
ve.Trigger.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00