Home
last modified time | relevance | path

Searched refs:splice (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/external/chromium_org/v8/test/mjsunit/
Darray-splice.js32 var spliced = array.splice(1, 1, 'one', 'two');
48 assertEquals([], [].splice(0, 0));
49 assertEquals([], [].splice(1, 0));
50 assertEquals([], [].splice(0, 1));
51 assertEquals([], [].splice(-1, 0));
60 assertEquals([], a.splice(1, 0, 'a', 'b', 'c'));
71 assertEquals([], array.splice());
79 assertEquals([1, 2, 3], array.splice(0));
83 assertEquals([1, 2, 3], array.splice(undefined));
87 assertEquals([1, 2, 3], array.splice("foobar"));
[all …]
Darray-natives-elements.js146 a3r = a3.splice(0, 0);
152 a3r = a3.splice(0, 1);
158 a3r = a3.splice(0, 0, 2);
164 a3r = a3.splice(0, 1, 2);
171 a3r = a3.splice(0, 0);
177 a3r = a3.splice(0, 1);
183 a3r = a3.splice(0, 0, 2);
191 a3r = a3.splice(0, 1, 2);
197 a3r = a3.splice(0, 0, 2.1);
205 a3r = a3.splice(0, 1, 2.2);
[all …]
Dobject-seal.js225 assertThrows(function() { obj.splice(0, 0, 100, 101, 102); }, TypeError);
226 assertDoesNotThrow(function() { obj.splice(0,0); });
232 assertDoesNotThrow(function() { objControl.splice(0, 0, 100, 101, 102); });
263 assertDoesNotThrow(function() { obj.splice(0,1,100); });
265 assertDoesNotThrow(function() { obj.splice(0,2,1,2); });
266 assertDoesNotThrow(function() { obj.splice(1,2,1,2); });
268 assertDoesNotThrow(function() { obj.splice(1,2000,1,2); });
269 assertThrows(function() { obj.splice(0,0,1); }, TypeError);
270 assertThrows(function() { obj.splice(1,2000,1,2,3); }, TypeError);
Darray-functions-prototype-misc.js74 return array.splice(start, len);
77 return array.splice(start, len, elt);
108 return Array.prototype.splice.call(array, start, len); method in Array
111 return Array.prototype.splice.call(array, start, len, elt); method in Array
280 var top = a.splice(LARGE, 5);
285 a.splice(LARGE, 0, LARGE);
296 var top = a.splice(LARGE >> 1, 5);
301 a.splice(LARGE >> 1, 0, LARGE >> 1, void 0, void 0, void 0, void 0);
314 Array.prototype.push.apply([], [1].splice(0, -(-1 % 5)));
Darray-functions-prototype.js124 assertArrayEquals(['zero'], array.splice(0, 1));
125 assertArrayEquals(['zero'], Array.prototype.splice.call(nonArray, 0, 1));
/external/v8/test/mjsunit/
Darray-splice.js32 var spliced = array.splice(1, 1, 'one', 'two');
48 assertEquals([], [].splice(0, 0));
49 assertEquals([], [].splice(1, 0));
50 assertEquals([], [].splice(0, 1));
51 assertEquals([], [].splice(-1, 0));
60 assertEquals([], a.splice(1, 0, 'a', 'b', 'c'));
71 assertEquals([], array.splice());
79 assertEquals([1, 2, 3], array.splice(0));
83 assertEquals([1, 2, 3], array.splice(undefined));
87 assertEquals([1, 2, 3], array.splice("foobar"));
[all …]
Darray-functions-prototype-misc.js74 return array.splice(start, len);
77 return array.splice(start, len, elt);
108 return Array.prototype.splice.call(array, start, len); method in Array
111 return Array.prototype.splice.call(array, start, len, elt); method in Array
280 var top = a.splice(LARGE, 5);
285 a.splice(LARGE, 0, LARGE);
296 var top = a.splice(LARGE >> 1, 5);
301 a.splice(LARGE >> 1, 0, LARGE >> 1, void 0, void 0, void 0, void 0);
314 Array.prototype.push.apply([], [1].splice(0, -(-1 % 5)));
Darray-functions-prototype.js124 assertArrayEquals(['zero'], array.splice(0, 1));
125 assertArrayEquals(['zero'], Array.prototype.splice.call(nonArray, 0, 1));
/external/chromium_org/v8/test/mjsunit/third_party/
Darray-splice-webkit.js35 assertArrayEquals(['c','d'], arr.splice(2));
37 assertArrayEquals(['a','b'], arr.splice(0));
41 assertEquals([], arr.splice())
43 assertArrayEquals(['a','b','c','d'], arr.splice(undefined))
47 assertArrayEquals(['a','b','c','d'], arr.splice(null))
51 assertArrayEquals([], arr.splice(100))
53 assertArrayEquals(['d'], arr.splice(-1))
56 assertArrayEquals([], arr.splice(2, undefined))
57 assertArrayEquals([], arr.splice(2, null))
58 assertArrayEquals([], arr.splice(2, -1))
[all …]
/external/v8/test/mjsunit/third_party/
Darray-splice-webkit.js35 assertArrayEquals(['c','d'], arr.splice(2));
37 assertArrayEquals(['a','b'], arr.splice(0));
41 assertEquals([], arr.splice())
43 assertArrayEquals(['a','b','c','d'], arr.splice(undefined))
47 assertArrayEquals(['a','b','c','d'], arr.splice(null))
51 assertArrayEquals([], arr.splice(100))
53 assertArrayEquals(['d'], arr.splice(-1))
56 assertArrayEquals([], arr.splice(2, undefined))
57 assertArrayEquals([], arr.splice(2, null))
58 assertArrayEquals([], arr.splice(2, -1))
[all …]
/external/chromium_org/chrome/browser/resources/options/
Dlanguage_dictionary_overlay_word_list.js115 this.dataModel.splice(this.dataModel.length - 1, 0, dictionaryWord);
161 this.dataModel.splice(this.dataModel.length - 1, 0, toAdd[i]);
176 this.removedWordsList_.splice(index, 1);
180 this.allWordsList_.splice(index, 1);
190 this.dataModel.splice(index, 1);
221 this.allWordsList_.splice(allWordsListIndex, 1);
222 this.dataModel.splice(index, 1);
/external/stlport/test/unit/
Dslist_test.cpp40 CPPUNIT_TEST(splice);
48 void splice();
198 void SlistTest::splice() in splice() function in SlistTest
210 sl1.splice(sl1.begin(), sl1, sl1.begin()); in splice()
215 sl1.splice(slit, sl1, sl1.begin()); in splice()
218 sl1.splice(sl1.end(), sl1, sl1.begin()); in splice()
225 sl1.splice(sl1.begin(), sl1, slit); in splice()
228 sl1.splice(sl1.begin(), sl2); in splice()
238 sl2.splice(sl2.begin(), sl1, sl1.begin(), slit); in splice()
242 sl1.splice(sl1.begin(), sl1, slit, sl1.end()); in splice()
[all …]
/external/chromium/chrome/browser/resources/shared/js/cr/ui/
Darray_data_model.js74 splice: function(index, deleteCount, var_args) { method in ArrayDataModel
83 var rv = arr.splice.apply(arr, arguments);
101 this.splice.apply(this, args);
/external/chromium_org/chrome/browser/resources/image_loader/
Dworker.js92 this.newRequests_.splice(newIndex, 1);
95 this.pendingRequests_.splice(pendingIndex, 1);
160 this.activeRequests_.splice(index, 1);
/external/bison/src/
Dscan-gram.l118 splice (\\[ \f\t\v]*\n)*
423 "*"{splice}"/" STRING_GROW; BEGIN context_state;
435 {splice} STRING_GROW;
583 {splice}|\\{splice}[^\n\[\]] STRING_GROW;
619 "/"{splice}"*" {
625 "/"{splice}"/" {
641 "{"|"<"{splice}"%" STRING_GROW; braces_level++;
642 "%"{splice}">" STRING_GROW; braces_level--;
659 "<"{splice}"<" STRING_GROW;
Dscan-code.l85 splice (\\[ \f\t\v]*\n)*
132 "*"{splice}"/" STRING_GROW; BEGIN sc_context;
143 {splice} STRING_GROW;
153 {splice}|\\{splice}. STRING_GROW;
179 "/"{splice}"*" {
183 "/"{splice}"/" {
246 {splice} STRING_GROW;
/external/chromium_org/chrome/common/extensions/docs/examples/apps/calculator/tests/
Dutilities.js326 expected.splice(-1, 1, ['', element, '']);
328 expected.splice(-1, 1, [operand, last[1], operand], ['', element, '']);
330 expected.splice(-1, 1, [], [operand || '0', '', operand || '0']);
334 expected[expected.length - 1].splice(2, 2, '-' + operand);
345 expectations.splice(-i - 1, replace ? 0 : 1);
348 expectations.splice(-i - 1, replace ? 0 : 1);
420 expected.splice(start, count, append);
/external/chromium/chrome/browser/resources/bookmark_manager/js/bmm/
Dbookmark_list.js261 this.dataModel.splice(bookmarkNode.index, 0, bookmarkNode);
277 this.dataModel.splice(moveInfo.oldIndex, 1);
278 this.dataModel.splice(moveInfo.index, 0, bookmarkNode);
287 dataModel.splice(index, 1);
295 dataModel.splice(bookmarkNode.index, 0, bookmarkNode);
306 dataModel.splice(index, 1);
/external/chromium_org/chrome/browser/resources/bookmark_manager/js/bmm/
Dbookmark_list.js254 this.dataModel.splice(bookmarkNode.index, 0, bookmarkNode);
269 this.dataModel.splice(moveInfo.oldIndex, 1);
270 this.dataModel.splice(moveInfo.index, 0, bookmarkNode);
279 dataModel.splice(index, 1);
287 dataModel.splice(bookmarkNode.index, 0, bookmarkNode);
298 dataModel.splice(index, 1);
/external/chromium_org/chrome/browser/resources/enhanced_bookmark_manager/js/bmm/
Dbookmark_list.js254 this.dataModel.splice(bookmarkNode.index, 0, bookmarkNode);
269 this.dataModel.splice(moveInfo.oldIndex, 1);
270 this.dataModel.splice(moveInfo.index, 0, bookmarkNode);
279 dataModel.splice(index, 1);
287 dataModel.splice(bookmarkNode.index, 0, bookmarkNode);
298 dataModel.splice(index, 1);
/external/chromium/chrome/browser/resources/options/
Dautofill_options_list.js128 this.list.dataModel.splice(i, 1, this.input.value);
131 this.list.dataModel.splice(i, 1);
177 this.list.dataModel.splice(i, 0, this.input.value);
304 this.dataModel.splice(index, 1);
/external/chromium/chrome/browser/resources/net_internals/
Dutil.js90 currentNames.splice(i, 1);
194 this.rows_.splice(0, 0, []);
250 this.rows_.splice(1, 0, headerSpacerRow);
301 this.rows_.splice(1, 1);
/external/chromium_org/v8/test/webkit/fast/js/
Darray-functions-non-arrays-expected.txt95 PASS Array.prototype.splice.call({}, 0, 1) is []
96 PASS Array.prototype.splice.call(['b', 'a'], 0, 1) is ['b']
97 PASS Array.prototype.splice.call({ length:2, 0:'b', 1:'a' }, 0, 1) is ['b']
98 PASS Array.prototype.splice.call(new TwoItemConstructor, 0, 1) is ['b']
99 PASS Array.prototype.splice.call(x = {}, 0, 1); properties(x) is 'length:0'
100 PASS Array.prototype.splice.call(x = ['b', 'a'], 0, 1); properties(x) is '0:a, length:1(DontDelete,…
101 PASS Array.prototype.splice.call(x = { length:2, 0:'b', 1:'a' }, 0, 1); properties(x) is '0:a, leng…
102 PASS Array.prototype.splice.call(x = new TwoItemConstructor, 0, 1); properties(x) is '0:a, 1:a(From…
/external/stlport/stlport/stl/pointers/
D_list.h293 void splice(iterator __pos, _Self& __x) in splice() function
294 { _M_impl.splice(_BaseIte(__pos._M_node), __x._M_impl); } in splice()
295 void splice(iterator __pos, _Self& __x, iterator __i) in splice() function
296 { _M_impl.splice(_BaseIte(__pos._M_node), __x._M_impl, _BaseIte(__i._M_node)); } in splice()
297 void splice(iterator __pos, _Self& __x, iterator __first, iterator __last) in splice() function
298 { _M_impl.splice(_BaseIte(__pos._M_node), __x._M_impl, in splice()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DObject.js65 listeners.splice(i, 1);
67 listeners.splice(i, 1);

12345678910>>...13