https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102021
Revision: 102021
Author: tparscal
Date: 2011-11-04 18:31:22 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Prepare removal tests are working now that DocumentModelNode objects have a
type property
Modified Paths:
--------------
trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js
Modified: trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js
===================================================================
--- trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js
2011-11-04 18:13:43 UTC (rev 102020)
+++ trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js
2011-11-04 18:31:22 UTC (rev 102021)
@@ -506,7 +506,7 @@
);
} );
-test( 'es.DocumentModel.prepareRemoval', 1, function() {
+test( 'es.DocumentModel.prepareRemoval', 3, function() {
var documentModel = es.DocumentModel.newFromPlainObject( obj );
// Test 1
@@ -527,7 +527,6 @@
'prepareRemoval includes the content being removed'
);
- /*
// Test 2
deepEqual(
documentModel.prepareRemoval( new es.Range( 15, 18 )
).getOperations(),
@@ -537,7 +536,7 @@
'type': 'remove',
'data': [
{ 'type': 'listItem', 'attributes': {
'styles': ['bullet', 'bullet'] } },
- 'b',
+ 'f',
{ 'type': '/listItem' }
]
},
@@ -562,7 +561,6 @@
],
'prepareRemoval merges two list items'
);
- */
} );
test( 'es.DocumentModel.prepareInsertion', 11, function() {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs