Fixed tests that were broken by r112150.

This commit is contained in:
Trevor Parscal 2012-03-02 23:12:38 +00:00
parent 009d7a4dea
commit 0e41da3340
Notes: Trevor Parscal 2012-03-02 23:12:38 +00:00
2 changed files with 5 additions and 5 deletions

View file

@ -218,9 +218,9 @@ test( 've.dm.DocumentNode.prepareElementAttributeChange', 4, function() {
// 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( 've.dm.DocumentNode.prepareElementAttributeChange', 4, function() {
// 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'

View file

@ -8,7 +8,7 @@ test( 've.dm.TransactionProcessor', 31, function() {
// 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