Fix rebuildNodes tests, were messing up ve.dm.example

Fixed by operating on a copy of the data instead

Change-Id: Ia2607d94f07b8d43e8c98ae8a94c34df90081508
This commit is contained in:
Catrope 2012-05-07 17:03:14 -07:00
parent 4bae026190
commit 770775eec0

View file

@ -12,7 +12,7 @@ test( 'getOuterLength', 1, function() {
} );
test( 'rebuildNodes', function() {
var doc = new ve.dm.Document( ve.dm.example.data ),
var doc = new ve.dm.Document( ve.dm.example.data.slice( 0 ) ),
documentNode = doc.getDocumentNode();
// Rebuild without changes