Lines Matching refs:areSame

15         Assert.areSame(3, Y.Array(els).length);
16 Assert.areSame(2, Y.Array(els, 1).length);
22 Assert.areSame(1, Y.Array(nodes).length);
56 Assert.areSame(data[index], item, 'the current item should be passed to the callback');
57 Assert.areSame(data, array, 'the array should be passed to the callback');
58 Assert.areSame(Y, this, 'the `this` object should default to the YUI instance');
61 Assert.areSame(calls, 4, 'the callback should be called 4 times');
64 Assert.areSame(obj, this, 'the `this` object should be overridable');
67 Assert.areSame(Y.Array.each, Y.Array.forEach, 'forEach should be an alias for each');
80 Assert.areSame(1, calls);
107 Y.Assert.areSame(2, Y.Object.size(hash));
108 Y.Assert.areSame('baz', hash.foo);
115 Assert.areSame(0, Y.Array.indexOf(data, 'a'), 'should find the first match');
116 Assert.areSame(-1, Y.Array.indexOf(data, 'z'), 'should return -1 on no match');
117 Assert.areSame(2, Y.Array.indexOf(data, 1), 'should find numbers');
118 Assert.areSame(4, Y.Array.indexOf(data, false), 'should perform strict equality checks');
119 Assert.areSame(5, Y.Array.indexOf(data, null), 'should find null');
125 Assert.areSame(0, Y.Array.indexOf(data, 'a', 0), 'should find the first match');
126 Assert.areSame(6, Y.Array.indexOf(data, 'a', 1), 'should find the 6th match');
127 Assert.areSame(-1, Y.Array.indexOf(data, 'a', 7), 'should return -1 on no match');
128 Assert.areSame(0, Y.Array.indexOf(data, 'a', -8), 'should find the first match');
129 Assert.areSame(6, Y.Array.indexOf(data, 'a', -1), 'should find the 6th match');
131 Assert.areSame(0, Y.Array.indexOf(data, 'a', 0.1), 'should convert fromIndex to an int');
132 Assert.areSame(0, Y.Array.indexOf(data, 'a', -0.1), 'should floor the absolute value of fromIndex to convert to an int');
133 Assert.areSame(6, Y.Array.indexOf(data, 'a', '1'), 'should convert string fromIndex to a number');
134 Assert.areSame(0, Y.Array.indexOf(data, 'a', undefined), 'should convert undefined fromIndex to a number');
135 Assert.areSame(0, Y.Array.indexOf(data, 'a', NaN), 'should treat NaN as 0');
136 Assert.areSame(-1, Y.Array.indexOf(data, 'a', 8), 'should return -1 on too-high fromIndex');
137 Assert.areSame(-1, Y.Array.indexOf(data, 'a', Infinity), 'should return -1 on Infinity');
138 Assert.areSame(0, Y.Array.indexOf(data, 'a', -Infinity), 'should return 0 on negative Infinity');
145 Y.Assert.areSame(3, Y.Array.indexOf(array, undefined));
162 Assert.areSame(data[index], v, 'the current item should be passed to the callback');
163 Assert.areSame(data, array, 'the array should be passed to the callback');
164 Assert.areSame(Y.config.win, this, 'the `this` object should default to the global object');
170 Assert.areSame(2, calls, 'callback should be called twice');
173 Assert.areSame(obj, this, 'the `this` object should be overridable');
187 Assert.areSame(1, calls);