r104072 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104071‎ | r104072 | r104073 >
Date:19:37, 23 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed a test which was poorly named and had incorrect data
Modified paths:
  • /trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js
@@ -59,25 +59,25 @@
6060 4,
6161 'getRelativeContentOffset uses the offset after the last character in an element'
6262 );
63 - // Test 3
 63+ // Test 4
6464 equal(
6565 documentModel.getRelativeContentOffset( 1, -1 ),
6666 1,
67 - 'getRelativeContentOffset treats the begining a document as a non-content offset'
 67+ 'getRelativeContentOffset does not allow moving before the content of the first node'
6868 );
69 - // Test 4
 69+ // Test 5
7070 equal(
71 - documentModel.getRelativeContentOffset( 32, 1 ),
72 - 32,
73 - 'getRelativeContentOffset treats the end a document as a non-content offset'
 71+ documentModel.getRelativeContentOffset( 33, 1 ),
 72+ 33,
 73+ 'getRelativeContentOffset does not allow moving after the content of the last node'
7474 );
75 - // Test 5
 75+ // Test 6
7676 equal(
7777 documentModel.getRelativeContentOffset( 4, 1 ),
7878 9,
7979 'getRelativeContentOffset advances forwards between elements'
8080 );
81 - // Test 6
 81+ // Test 7
8282 equal(
8383 documentModel.getRelativeContentOffset( 32, -1 ),
8484 25,

Status & tagging log