Lines Matching refs:locationFromPosition

108   var location = script.locationFromPosition(p);
134 var location = script.locationFromPosition(p);
143 assertEquals(0, script.locationFromPosition(0).position);
144 assertEquals(0, script.locationFromPosition(0).line);
145 assertEquals(0, script.locationFromPosition(0).column);
148 assertEquals(1, script.locationFromPosition(1).position);
149 assertEquals(0, script.locationFromPosition(1).line);
150 assertEquals(1, script.locationFromPosition(1).column);
153 assertEquals(start_a, script.locationFromPosition(start_a).position);
154 assertEquals(0, script.locationFromPosition(start_a).line - comment_lines);
155 assertEquals(10, script.locationFromPosition(start_a).column);
158 assertEquals(start_b, script.locationFromPosition(start_b).position);
159 assertEquals(1, script.locationFromPosition(start_b).line - comment_lines);
160 assertEquals(13, script.locationFromPosition(start_b).column);
163 assertEquals(start_c, script.locationFromPosition(start_c).position);
164 assertEquals(4, script.locationFromPosition(start_c).line - comment_lines);
165 assertEquals(12, script.locationFromPosition(start_c).column);
168 assertEquals(start_d, script.locationFromPosition(start_d).position);
169 assertEquals(11, script.locationFromPosition(start_d).line - comment_lines);
170 assertEquals(10, script.locationFromPosition(start_d).column);
253 assertEquals(0, script.locationFromPosition(-1).line);
254 assertEquals(null, script.locationFromPosition(last_position + 1));
257 assertEquals(last_position, script.locationFromPosition(last_position).position);
258 assertEquals(last_line, script.locationFromPosition(last_position).line);
259 assertEquals(last_column, script.locationFromPosition(last_position).column);