Index: trunk/extensions/VisualEditor/tests/ve/ve.dm.DocumentNode.test.js |
— | — | @@ -218,9 +218,9 @@ |
219 | 219 | |
220 | 220 | // Test 1 |
221 | 221 | deepEqual( |
222 | | - documentModel.prepareElementAttributeChange( 0, 'set', 'test', 1234 ).getOperations(), |
| 222 | + documentModel.prepareElementAttributeChange( 0, 'test', 1234 ).getOperations(), |
223 | 223 | [ |
224 | | - { 'type': 'attribute', 'method': 'set', 'key': 'test', 'value': 1234 }, |
| 224 | + { 'type': 'attribute', 'key': 'test', 'from': undefined, 'to': 1234 }, |
225 | 225 | { 'type': 'retain', 'length': 34 } |
226 | 226 | ], |
227 | 227 | 'prepareElementAttributeChange retains data after attribute change for first element' |
— | — | @@ -228,10 +228,10 @@ |
229 | 229 | |
230 | 230 | // Test 2 |
231 | 231 | deepEqual( |
232 | | - documentModel.prepareElementAttributeChange( 5, 'set', 'test', 1234 ).getOperations(), |
| 232 | + documentModel.prepareElementAttributeChange( 5, 'test', 1234 ).getOperations(), |
233 | 233 | [ |
234 | 234 | { 'type': 'retain', 'length': 5 }, |
235 | | - { 'type': 'attribute', 'method': 'set', 'key': 'test', 'value': 1234 }, |
| 235 | + { 'type': 'attribute', 'key': 'test', 'from': undefined, 'to': 1234 }, |
236 | 236 | { 'type': 'retain', 'length': 29 } |
237 | 237 | ], |
238 | 238 | 'prepareElementAttributeChange retains data before and after attribute change' |
Index: trunk/extensions/VisualEditor/tests/ve/ve.dm.TransactionProcessor.test.js |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | // We should be creating transactions directly and feeding those into |
10 | 10 | // commit()/rollback() --Roan |
11 | 11 | var elementAttributeChange = documentModel.prepareElementAttributeChange( |
12 | | - 0, 'set', 'test', 1 |
| 12 | + 0, 'test', 1 |
13 | 13 | ); |
14 | 14 | |
15 | 15 | // Test 1 |