Index: trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js |
— | — | @@ -59,25 +59,25 @@ |
60 | 60 | 4, |
61 | 61 | 'getRelativeContentOffset uses the offset after the last character in an element' |
62 | 62 | ); |
63 | | - // Test 3 |
| 63 | + // Test 4 |
64 | 64 | equal( |
65 | 65 | documentModel.getRelativeContentOffset( 1, -1 ), |
66 | 66 | 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' |
68 | 68 | ); |
69 | | - // Test 4 |
| 69 | + // Test 5 |
70 | 70 | 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' |
74 | 74 | ); |
75 | | - // Test 5 |
| 75 | + // Test 6 |
76 | 76 | equal( |
77 | 77 | documentModel.getRelativeContentOffset( 4, 1 ), |
78 | 78 | 9, |
79 | 79 | 'getRelativeContentOffset advances forwards between elements' |
80 | 80 | ); |
81 | | - // Test 6 |
| 81 | + // Test 7 |
82 | 82 | equal( |
83 | 83 | documentModel.getRelativeContentOffset( 32, -1 ), |
84 | 84 | 25, |