Lines Matching defs:callCount
64 var callCount = 0;
65 shouldBe("sparseArray.reduceRight(function(a,b){ callCount++; }); callCount", "0");
66 callCount = 0;
67 shouldBe("toObject(sparseArray).reduceRight(function(a,b){ callCount++; }); callCount", "0");
68 var callCount = 0;
69 shouldBe("sparseArray.reduceRight(function(a,b){ callCount++; }, 0); callCount", "1");
70 callCount = 0;
71 shouldBe("toObject(sparseArray).reduceRight(function(a,b){ callCount++; }, 0); callCount", "1");
72 callCount = 0;
73 shouldBe("[0,1,2,3,4].reduceRight(function(a,b){ callCount++; }, 0); callCount", "5");
74 callCount = 0;
75 shouldBe("[0,1,2,3,4].reduceRight(function(a,b){ callCount++; }); callCount", "4");
76 callCount = 0;
77 shouldBe("[1, 2, 3, 4].reduceRight(function(a,b, i, thisObj){ thisObj.length--; callCount++; return a + b; }, 0); callCount", "4");
78 callCount = 0;
79 shouldBe("[1, 2, 3, 4].reduceRight(function(a,b, i, thisObj){ thisObj.length = 1; callCount++; return a + b; }, 0); callCount", "2");
80 callCount = 0;
81 shouldBe("[1, 2, 3, 4].reduceRight(function(a,b, i, thisObj){ thisObj.length++; callCount++; return a + b; }, 0); callCount", "4");
82 callCount = 0;
83 shouldBe("toObject([1, 2, 3, 4]).reduceRight(function(a,b, i, thisObj){ thisObj.length--; callCount++; return a + b; }, 0); callCount", "4");
84 callCount = 0;
85 shouldBe("toObject([1, 2, 3, 4]).reduceRight(function(a,b, i, thisObj){ thisObj.length++; callCount++; return a + b; }, 0); callCount", "4");