mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
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:
parent
4bae026190
commit
770775eec0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue