mediawiki-extensions-Visual.../modules/ve
Roan Kattouw f538fcf6be mw.ViewPageTarget: Add sanity check for DOM roundtrip
The sanity check converts the linear model back to DOM, then
compares this DOM to the original DOM and rejects the deferred
if they are not equal.

The DOM creation has to be done synchronously (before we unlock
the surface), but the actual comparsion can be (and is) done
asynchronously.

To make the UI flow of the save dialog easier we just keep the
save button on the toolbar itself disabled until the sanity
check is done. Though this should finish before the user starts
editing the document (let alone start saving), we do add a class
to the button to indicate a progress cursor.

To simulate a slow sanity check, set the setTimeout in
startSanityCheck to 5000, load VE, make a change, hover the
button, and see it change from disabled + progress-cursor to
enabled after 5 seconds.

To simulate the sanity check failing, change !== to === in
the first "if" in startSanityCheck.

Bug: 47521
Bug: 50067
Change-Id: I04f71fe8e00c6257fbc953cc9de3323e24709b0f
2013-06-27 19:20:14 -07:00
..
ce Reference insertion, new and existing 2013-06-27 18:11:31 -07:00
dm Reference insertion, new and existing 2013-06-27 18:11:31 -07:00
init mw.ViewPageTarget: Add sanity check for DOM roundtrip 2013-06-27 19:20:14 -07:00
test Reference insertion, new and existing 2013-06-27 18:11:31 -07:00
ui Merge "Reference insertion, new and existing" 2013-06-28 01:13:53 +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 Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.EventEmitter.js
ve.Factory.js
ve.js Close dialogs on escape 2013-06-27 17:00:35 -07:00
ve.LeafNode.js
ve.NamedClassFactory.js
ve.Node.js
ve.Range.js
ve.Registry.js