Index: trunk/extensions/VisualEditor/tests/es.DocumentModel.test.js |
— | — | @@ -891,12 +891,13 @@ |
892 | 892 | |
893 | 893 | test( 'es.DocumentDocumentModelNode child operations', 20, function() { |
894 | 894 | // 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' )] ), |
898 | 898 | node4 = new es.DocumentModelNode( |
| 899 | + '4', |
899 | 900 | null, |
900 | | - [new es.DocumentModelNode(), new es.DocumentModelNode()] |
| 901 | + [new es.DocumentModelNode( '4a' ), new es.DocumentModelNode( '4b' )] |
901 | 902 | ); |
902 | 903 | |
903 | 904 | // Event triggering is detected using a callback that increments a counter |