From 0e41da3340b1bf1323c4a74511819e89abf80096 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Fri, 2 Mar 2012 23:12:38 +0000 Subject: [PATCH] Fixed tests that were broken by r112150. --- tests/ve/ve.dm.DocumentNode.test.js | 8 ++++---- tests/ve/ve.dm.TransactionProcessor.test.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ve/ve.dm.DocumentNode.test.js b/tests/ve/ve.dm.DocumentNode.test.js index 6aa66fb794..67f901af63 100644 --- a/tests/ve/ve.dm.DocumentNode.test.js +++ b/tests/ve/ve.dm.DocumentNode.test.js @@ -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' diff --git a/tests/ve/ve.dm.TransactionProcessor.test.js b/tests/ve/ve.dm.TransactionProcessor.test.js index b37525b582..df99f464df 100644 --- a/tests/ve/ve.dm.TransactionProcessor.test.js +++ b/tests/ve/ve.dm.TransactionProcessor.test.js @@ -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