/external/chromium_org/v8/test/mjsunit/ |
H A D | array-splice.js | 32 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 D | array-natives-elements.js | 131 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 D | object-seal.js | 225 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 D | array-functions-prototype-misc.js | 29 * @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 D | array-functions-prototype.js | 117 // 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 D | regress-builtinbust-1.js | 14 assertThrows(function() { a.splice(0, 1); }, TypeError);
|
H A D | regress-swapelements.js | 41 array1.splice(0, 1);
|
H A D | splice-missing-wb.js | 47 a.splice(2, 200);
|
/external/chromium_org/v8/test/webkit/ |
H A D | array-splice.js | 25 "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 D | unload_event.js | 20 $Array.splice(listeners, i, 1);
|
/external/chromium_org/third_party/polymer/components-chromium/core-signals/ |
H A D | core-signals-extracted.js | 11 signals.splice(i, 1);
|
/external/chromium_org/ui/file_manager/image_loader/ |
H A D | worker.js | 92 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 D | splice_pos_list_iter.pass.cpp | 12 // 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 D | splice_pos_list_iter_iter.pass.cpp | 12 // 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 D | splice_pos_list.pass.cpp | 12 // 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 D | language_dictionary_overlay_word_list.js | 116 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 D | send_links.js | 29 links.splice(i, 1);
|
/external/chromium_org/third_party/WebKit/PerformanceTests/Layout/resources/ |
H A D | character_fallback_test.js | 14 fallbackChars.splice(selectedCharIndex, 1);
|
/external/chromium_org/components/omnibox/ |
H A D | answers_cache.cc | 28 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 D | core-meta-extracted.js | 54 this.metaArray.splice(i, 1);
|
/external/chromium_org/third_party/polymer/components-chromium/core-selection/ |
H A D | core-selection-extracted.js | 43 this.selection.splice(i, 1);
|
/external/chromium_org/remoting/webapp/unittests/ |
H A D | chrome_mocks.js | 23 this.listeners_.splice(i, 1);
|
/external/stlport/test/unit/ |
H A D | slist_test.cpp | 40 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 D | utilities.js | 326 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 D | events_tracker.js | 82 originalEvents.splice(0, originalEvents.length - this.softLimit_);
|