https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112927
Revision: 112927
Author: tparscal
Date: 2012-03-02 23:12:38 +0000 (Fri, 02 Mar 2012)
Log Message:
-----------
Fixed tests that were broken by r112150.
Modified Paths:
--------------
trunk/extensions/VisualEditor/tests/ve/ve.dm.DocumentNode.test.js
trunk/extensions/VisualEditor/tests/ve/ve.dm.TransactionProcessor.test.js
Modified: trunk/extensions/VisualEditor/tests/ve/ve.dm.DocumentNode.test.js
===================================================================
--- trunk/extensions/VisualEditor/tests/ve/ve.dm.DocumentNode.test.js
2012-03-02 22:59:11 UTC (rev 112926)
+++ trunk/extensions/VisualEditor/tests/ve/ve.dm.DocumentNode.test.js
2012-03-02 23:12:38 UTC (rev 112927)
@@ -218,9 +218,9 @@
// Test 1
deepEqual(
- documentModel.prepareElementAttributeChange( 0, 'set', 'test',
1234 ).getOperations(),
+ documentModel.prepareElementAttributeChange( 0, 'test', 1234
).getOperations(),
[
- { 'type': 'attribute', 'method': 'set', 'key': 'test',
'value': 1234 },
+ { 'type': 'attribute', 'key': 'test', 'from':
undefined, 'to': 1234 },
{ 'type': 'retain', 'length': 34 }
],
'prepareElementAttributeChange retains data after attribute
change for first element'
@@ -228,10 +228,10 @@
// Test 2
deepEqual(
- documentModel.prepareElementAttributeChange( 5, 'set', 'test',
1234 ).getOperations(),
+ documentModel.prepareElementAttributeChange( 5, 'test', 1234
).getOperations(),
[
{ 'type': 'retain', 'length': 5 },
- { 'type': 'attribute', 'method': 'set', 'key': 'test',
'value': 1234 },
+ { 'type': 'attribute', 'key': 'test', 'from':
undefined, 'to': 1234 },
{ 'type': 'retain', 'length': 29 }
],
'prepareElementAttributeChange retains data before and after
attribute change'
Modified:
trunk/extensions/VisualEditor/tests/ve/ve.dm.TransactionProcessor.test.js
===================================================================
--- trunk/extensions/VisualEditor/tests/ve/ve.dm.TransactionProcessor.test.js
2012-03-02 22:59:11 UTC (rev 112926)
+++ trunk/extensions/VisualEditor/tests/ve/ve.dm.TransactionProcessor.test.js
2012-03-02 23:12:38 UTC (rev 112927)
@@ -8,7 +8,7 @@
// We should be creating transactions directly and feeding those into
// commit()/rollback() --Roan
var elementAttributeChange =
documentModel.prepareElementAttributeChange(
- 0, 'set', 'test', 1
+ 0, 'test', 1
);
// Test 1
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs