Index: trunk/parsers/wikidom/tests/annotations/test.js |
— | — | @@ -76,14 +76,14 @@ |
77 | 77 | "type": "italic", |
78 | 78 | "range": { |
79 | 79 | "start": 0, |
80 | | - "stop": 4 |
| 80 | + "end": 4 |
81 | 81 | } |
82 | 82 | }, |
83 | 83 | { |
84 | 84 | "type": "xlink", |
85 | 85 | "range": { |
86 | 86 | "start": 8, |
87 | | - "stop": 14 |
| 87 | + "end": 14 |
88 | 88 | }, |
89 | 89 | "data": { |
90 | 90 | "url": "http://www.a.com" |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | "type": "bold", |
95 | 95 | "range": { |
96 | 96 | "start": 10, |
97 | | - "stop": 14 |
| 97 | + "end": 14 |
98 | 98 | } |
99 | 99 | } |
100 | 100 | ] |
— | — | @@ -105,14 +105,14 @@ |
106 | 106 | "type": "italic", |
107 | 107 | "range": { |
108 | 108 | "start": 11, |
109 | | - "stop": 14 |
| 109 | + "end": 14 |
110 | 110 | } |
111 | 111 | }, |
112 | 112 | { |
113 | 113 | "type": "bold", |
114 | 114 | "range": { |
115 | 115 | "start": 20, |
116 | | - "stop": 24 |
| 116 | + "end": 24 |
117 | 117 | } |
118 | 118 | } |
119 | 119 | ] |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | for ( var j in line.annotations ) { |
135 | 135 | var annotation = line.annotations[j]; |
136 | 136 | |
137 | | - for ( var k = annotation.range.start; k <= annotation.range.stop; k++ ) { |
| 137 | + for ( var k = annotation.range.start; k <= annotation.range.end; k++ ) { |
138 | 138 | line.content[k].push( annotation ); |
139 | 139 | } |
140 | 140 | } |