r101854 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101853‎ | r101854 | r101855 >
Date:19:02, 3 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Updated tests to work after changing es.DocumentModelNode's constructor arguments
Modified paths:
  • /trunk/extensions/VisualEditor/tests/es.DocumentModel.test.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/tests/es.DocumentModel.test.js
@@ -891,12 +891,13 @@
892892
893893 test( 'es.DocumentDocumentModelNode child operations', 20, function() {
894894 // Example data (integers) is used for simplicity of testing
895 - var node1 = new es.DocumentModelNode( null ),
896 - node2 = new es.DocumentModelNode( null ),
897 - node3 = new es.DocumentModelNode( null, [new es.DocumentModelNode()] ),
 895+ var node1 = new es.DocumentModelNode( '1' ),
 896+ node2 = new es.DocumentModelNode( '2' ),
 897+ node3 = new es.DocumentModelNode( '3', null, [new es.DocumentModelNode( '3a' )] ),
898898 node4 = new es.DocumentModelNode(
 899+ '4',
899900 null,
900 - [new es.DocumentModelNode(), new es.DocumentModelNode()]
 901+ [new es.DocumentModelNode( '4a' ), new es.DocumentModelNode( '4b' )]
901902 );
902903
903904 // Event triggering is detected using a callback that increments a counter

Status & tagging log