Searched refs:splice (Results 1 - 25 of 309) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/mjsunit/
H A 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("fooba
[all...]
H A Darray-natives-elements.js131 a3r = a3.splice(0, 0);
137 a3r = a3.splice(0, 1);
143 a3r = a3.splice(0, 0, 2);
149 a3r = a3.splice(0, 1, 2);
156 a3r = a3.splice(0, 0);
162 a3r = a3.splice(0, 1);
168 a3r = a3.splice(0, 0, 2);
176 a3r = a3.splice(0, 1, 2);
182 a3r = a3.splice(0, 0, 2.1);
190 a3r = a3.splice(
[all...]
H A 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); });
259 // Verify special behavior of splice on sealed objects.
262 assertDoesNotThrow(function() { obj.splice(0,1,100); });
264 assertDoesNotThrow(function() { obj.splice(0,2,1,2); });
265 assertDoesNotThrow(function() { obj.splice(1,2,1,2); });
267 assertDoesNotThrow(function() { obj.splice(1,2000,1,2); });
268 assertThrows(function() { obj.splice(0,0,1); }, TypeError);
269 assertThrows(function() { obj.splice(
[all...]
H A Darray-functions-prototype-misc.js29 * @fileoverview Test splice, shift, unshift, slice and join on small
74 return array.splice(start, len);
77 return array.splice(start, len, elt);
108 return Array.prototype.splice.call(array, start, len);
111 return Array.prototype.splice.call(array, start, len, elt);
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(
[all...]
H A Darray-functions-prototype.js117 // splice
124 assertArrayEquals(['zero'], array.splice(0, 1));
125 assertArrayEquals(['zero'], Array.prototype.splice.call(nonArray, 0, 1));
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-builtinbust-1.js14 assertThrows(function() { a.splice(0, 1); }, TypeError);
H A Dregress-swapelements.js41 array1.splice(0, 1);
H A Dsplice-missing-wb.js47 a.splice(2, 200);
/external/chromium_org/v8/test/webkit/
H A Darray-splice.js25 "This tests array.splice behavior."
30 shouldBe("arr.splice(2)", "['c','d']");
32 shouldBe("arr.splice(0)", "['a','b']");
36 shouldBe("arr.splice()", "[]")
38 shouldBe("arr.splice(undefined)", "['a','b','c','d']")
42 shouldBe("arr.splice(null)", "['a','b','c','d']")
46 shouldBe("arr.splice(100)", "[]")
48 shouldBe("arr.splice(-1)", "['d']")
51 shouldBe("arr.splice(2, undefined)", "[]")
52 shouldBe("arr.splice(
[all...]
/external/chromium_org/extensions/renderer/resources/
H A Dunload_event.js20 $Array.splice(listeners, i, 1);
/external/chromium_org/third_party/polymer/components-chromium/core-signals/
H A Dcore-signals-extracted.js11 signals.splice(i, 1);
/external/chromium_org/ui/file_manager/image_loader/
H A Dworker.js92 this.newRequests_.splice(newIndex, 1);
95 this.pendingRequests_.splice(pendingIndex, 1);
160 this.activeRequests_.splice(index, 1);
/external/libcxx/test/containers/sequences/list/list.ops/
H A Dsplice_pos_list_iter.pass.cpp12 // void splice(const_iterator position, list<T,Allocator>& x, iterator i);
30 l1.splice(l1.end(), l2, l2.begin());
41 l1.splice(l1.end(), l2, l2.begin());
54 l1.splice(l1.end(), l2, next(l2.begin()));
67 l1.splice(l1.end(), l2, l2.begin());
82 l1.splice(l1.end(), l2, next(l2.begin()));
97 l1.splice(l1.end(), l2, next(l2.begin(), 2));
111 l1.splice(l1.begin(), l1, l1.begin());
120 l1.splice(l1.begin(), l2, l2.begin());
133 l1.splice(nex
[all...]
H A Dsplice_pos_list_iter_iter.pass.cpp12 // void splice(const_iterator position, list& x, iterator first, iterator last);
29 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin()));
41 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 2));
53 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 3));
66 l1.splice(l1.begin(), l2, next(l2.begin()), l2.end());
86 l1.splice(next(l1.begin()), l2, next(l2.begin()), l2.end());
106 l1.splice(l1.end(), l2, next(l2.begin()), l2.end());
127 v1.splice(v1.begin(), v2, v2.begin(), v1.end());
134 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin()));
146 l1.splice(l
[all...]
H A Dsplice_pos_list.pass.cpp12 // void splice(const_iterator position, list& x);
30 l1.splice(l1.end(), l2);
39 l1.splice(l1.end(), l2);
50 l1.splice(l1.end(), l2);
63 l1.splice(l1.end(), l2);
78 l1.splice(l1.begin(), l2);
89 l1.splice(l1.end(), l2);
100 l1.splice(l1.begin(), l2);
113 l1.splice(l1.end(), l2);
126 l1.splice(l
[all...]
/external/chromium_org/chrome/browser/resources/options/
H A Dlanguage_dictionary_overlay_word_list.js116 this.dataModel.splice(this.dataModel.length - 1, 0, dictionaryWord);
162 this.dataModel.splice(this.dataModel.length - 1, 0, toAdd[i]);
177 this.removedWordsList_.splice(index, 1);
181 this.allWordsList_.splice(index, 1);
191 this.dataModel.splice(index, 1);
225 this.allWordsList_.splice(allWordsListIndex, 1);
226 this.dataModel.splice(index, 1);
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_links/
H A Dsend_links.js29 links.splice(i, 1);
/external/chromium_org/third_party/WebKit/PerformanceTests/Layout/resources/
H A Dcharacter_fallback_test.js14 fallbackChars.splice(selectedCharIndex, 1);
/external/chromium_org/components/omnibox/
H A Danswers_cache.cc28 cache_.splice(cache_.begin(), cache_, it);
41 cache_.splice(cache_.begin(), cache_, it);
/external/chromium_org/third_party/polymer/components-chromium/core-meta/
H A Dcore-meta-extracted.js54 this.metaArray.splice(i, 1);
/external/chromium_org/third_party/polymer/components-chromium/core-selection/
H A Dcore-selection-extracted.js43 this.selection.splice(i, 1);
/external/chromium_org/remoting/webapp/unittests/
H A Dchrome_mocks.js23 this.listeners_.splice(i, 1);
/external/stlport/test/unit/
H A Dslist_test.cpp40 CPPUNIT_TEST(splice);
48 void splice();
198 void SlistTest::splice() function in class:SlistTest
203 //splice
210 sl1.splice(sl1.begin(), sl1, sl1.begin());
215 sl1.splice(slit, sl1, sl1.begin());
218 sl1.splice(sl1.end(), sl1, sl1.begin());
225 sl1.splice(sl1.begin(), sl1, slit);
228 sl1.splice(sl1.begin(), sl2);
238 sl2.splice(sl
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/apps/calculator/tests/
H A 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_org/chrome/browser/resources/net_internals/
H A Devents_tracker.js82 originalEvents.splice(0, originalEvents.length - this.softLimit_);

Completed in 1428 milliseconds

1234567891011>>