Lines Matching refs:st

25     t.test('binds properly', function (st) {  argument
34 st.deepEqual(args, [1, 2, 3]);
35 st.equal(context, getCurrentContext.call());
36 st.end();
39 t.test('binds properly, and still supplies bound arguments', function (st) { argument
48 st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
49 st.equal(context, getCurrentContext.call());
50 st.end();
53 t.test('returns properly', function (st) { argument
62 st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
63 st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
64 st.end();
67 t.test('returns properly with bound arguments', function (st) { argument
76 st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
77 st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
78 st.end();
81 t.test('called as a constructor', function (st) { argument
85 st.test('returns object value', function (sst) {
93 st.test('does not return primitive value', function (sst) {
100st.test('object from bound constructor is instance of original and bound constructor', function (s…
112 st.end();
119 t.test('with no bound arguments', function (st) { argument
129 st.equal(context, boundContext, 'binds a context properly');
130 st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
131 st.end();
134 t.test('with bound arguments', function (st) { argument
144 st.equal(context, boundContext, 'binds a context properly');
145 st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
146 st.end();
149 t.test('returns properly', function (st) { argument
159 st.equal(context, boundContext, 'returned context is bound context');
160 st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
161 st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
162 st.end();
165 t.test('returns properly with bound arguments', function (st) { argument
175 st.equal(context, boundContext, 'returned context is bound context');
176 st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
177 st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
178 st.end();
181 t.test('passes the correct arguments when called as a constructor', function (st) { argument
189 st.equal(returned, expected, 'returns the right arg when called as a constructor');
190 st.end();
193 t.test('has the new instance\'s context when called as a constructor', function (st) { argument
202 st.equal(result instanceof namespace.Func, true);
203 st.notEqual(actualContext, expectedContext);
204 st.end();
211 t.test('sets a correct length without thisArg', function (st) { argument
213 st.equal(subject.length, 3);
214 st.equal(subject(1, 2, 3), 6);
215 st.end();
218 t.test('sets a correct length with thisArg', function (st) { argument
220 st.equal(subject.length, 3);
221 st.equal(subject(1, 2, 3), 6);
222 st.end();
225 t.test('sets a correct length without thisArg and first argument', function (st) { argument
227 st.equal(subject.length, 2);
228 st.equal(subject(2, 3), 6);
229 st.end();
232 t.test('sets a correct length with thisArg and first argument', function (st) { argument
234 st.equal(subject.length, 2);
235 st.equal(subject(2, 3), 6);
236 st.end();
239 t.test('sets a correct length without thisArg and too many arguments', function (st) { argument
241 st.equal(subject.length, 0);
242 st.equal(subject(), 6);
243 st.end();
246 t.test('sets a correct length with thisArg and too many arguments', function (st) { argument
248 st.equal(subject.length, 0);
249 st.equal(subject(), 6);
250 st.end();