mediawiki-extensions-Visual.../modules/ve2
Trevor Parscal 9a3784301b Improved test coverage for ve.dm.BranchNode.splice and ve.dm.TwigNode.splice
* Changed splice to check all elements about to be inserted are allowed before inserting any of them so that catching an exception leaves you in a sane state
* Fixed the order of execution of parent class constructors in ve.dm.LeafNode and ve.dm.TwigNode so that canHaveChildren and canHaveGrandchildren produce correct values and added tests to ensure these methods are correctly inherited in subclasses
* Added tests that check for exceptions when adding nodes that can have children to nodes that can not have grandchildren
* Added test that check for events being emitted before and after splicing, including that beforeSplice should be emitted even in cases where a splice fails and throws an exception because the nodes are incompatible (but afterSplice is not called in this case) since beforeSplice might modify the nodes in some way before the compatibility tests are run

Change-Id: Id12aea995a42c26ff63a74ae3d31f2bf455759e3
2012-04-19 17:45:58 -07:00
..
dm Improved test coverage for ve.dm.BranchNode.splice and ve.dm.TwigNode.splice 2012-04-19 17:45:58 -07:00
ve.BranchNode.js Added more tests for ve.*Node and ve.dm.*Node classes 2012-04-19 16:03:59 -07:00
ve.EventEmitter.js Add ve2 directory for rewriting code in 2012-04-16 19:38:13 -07:00
ve.js Add ve2 directory for rewriting code in 2012-04-16 19:38:13 -07:00
ve.LeafNode.js Initial commit of data model rewrite 2012-04-19 13:54:34 -07:00
ve.Node.js A few fix ups for fd49e8d 2012-04-19 16:47:40 -07:00
ve.Position.js Add ve2 directory for rewriting code in 2012-04-16 19:38:13 -07:00
ve.Range.js Add ve2 directory for rewriting code in 2012-04-16 19:38:13 -07:00
ve.Surface.js Add ve2 directory for rewriting code in 2012-04-16 19:38:13 -07:00
ve.TwigNode.js Initial commit of data model rewrite 2012-04-19 13:54:34 -07:00