Lines Matching refs:result
62 Local<Value> result) { in ExpectBoolean() argument
63 CHECK(result->IsBoolean()); in ExpectBoolean()
64 CHECK_EQ(expected, result->BooleanValue(context).FromJust()); in ExpectBoolean()
69 Local<Value> result) { in ExpectInt32() argument
70 CHECK(result->IsInt32()); in ExpectInt32()
71 CHECK_EQ(expected, result->Int32Value(context).FromJust()); in ExpectInt32()
76 Local<Value> result) { in ExpectNumber() argument
77 CHECK(result->IsNumber()); in ExpectNumber()
78 CHECK_EQ(expected, result->NumberValue(context).FromJust()); in ExpectNumber()
82 static void ExpectUndefined(Local<Value> result) { in ExpectUndefined() argument
83 CHECK(result->IsUndefined()); in ExpectUndefined()
92 Local<Value> result = CompileRun("0x271828;"); in TEST() local
93 ExpectInt32(env.local(), 0x271828, result); in TEST()
100 Local<Value> result = CompileRun("var my_global_var = 0x123; my_global_var;"); in TEST() local
101 ExpectInt32(env.local(), 0x123, result); in TEST()
108 Local<Value> result = CompileRun( in TEST() local
111 ExpectInt32(env.local(), 0x314, result); in TEST()
118 Local<Value> result = CompileRun( in TEST() local
125 ExpectInt32(env.local(), 0x2468, result); in TEST()
138 Local<Value> result = CompileRun(buffer); in if_comparison_testcontext_helper() local
139 ExpectInt32(context, expect, result); in if_comparison_testcontext_helper()
153 Local<Value> result = CompileRun(buffer); in if_comparison_effectcontext_helper() local
154 ExpectInt32(context, expect, result); in if_comparison_effectcontext_helper()
190 Local<Value> result; in TEST() local
192 result = CompileRun("var a = 1234; +a"); in TEST()
193 ExpectInt32(env.local(), 1234, result); in TEST()
195 result = CompileRun("var a = 1234.5; +a"); in TEST()
196 ExpectNumber(env.local(), 1234.5, result); in TEST()
198 result = CompileRun("var a = '1234'; +a"); in TEST()
199 ExpectInt32(env.local(), 1234, result); in TEST()
201 result = CompileRun("var a = '1234.5'; +a"); in TEST()
202 ExpectNumber(env.local(), 1234.5, result); in TEST()
204 result = CompileRun("var a = 1234; +(a = 4321); a"); in TEST()
205 ExpectInt32(env.local(), 4321, result); in TEST()
212 Local<Value> result; in TEST() local
213 result = CompileRun("var a = 1234; -a"); in TEST()
214 ExpectInt32(env.local(), -1234, result); in TEST()
215 result = CompileRun("var a = 1234.5; -a"); in TEST()
216 ExpectNumber(env.local(), -1234.5, result); in TEST()
217 result = CompileRun("var a = 1234; -(a = 4321); a"); in TEST()
218 ExpectInt32(env.local(), 4321, result); in TEST()
219 result = CompileRun("var a = '1234'; -a"); in TEST()
220 ExpectInt32(env.local(), -1234, result); in TEST()
221 result = CompileRun("var a = '1234.5'; -a"); in TEST()
222 ExpectNumber(env.local(), -1234.5, result); in TEST()
229 Local<Value> result; in TEST() local
230 result = CompileRun("var a = 1234; void (a);"); in TEST()
231 ExpectUndefined(result); in TEST()
232 result = CompileRun("var a = 0; void (a = 42); a"); in TEST()
233 ExpectInt32(env.local(), 42, result); in TEST()
234 result = CompileRun("var a = 0; void (a = 42);"); in TEST()
235 ExpectUndefined(result); in TEST()
242 Local<Value> result; in TEST() local
243 result = CompileRun("var a = 1234; !a"); in TEST()
244 ExpectBoolean(env.local(), false, result); in TEST()
245 result = CompileRun("var a = 0; !a"); in TEST()
246 ExpectBoolean(env.local(), true, result); in TEST()
247 result = CompileRun("var a = 0; !(a = 1234); a"); in TEST()
248 ExpectInt32(env.local(), 1234, result); in TEST()
249 result = CompileRun("var a = '1234'; !a"); in TEST()
250 ExpectBoolean(env.local(), false, result); in TEST()
251 result = CompileRun("var a = ''; !a"); in TEST()
252 ExpectBoolean(env.local(), true, result); in TEST()
253 result = CompileRun("var a = 1234; !!a"); in TEST()
254 ExpectBoolean(env.local(), true, result); in TEST()
255 result = CompileRun("var a = 0; !!a"); in TEST()
256 ExpectBoolean(env.local(), false, result); in TEST()
257 result = CompileRun("var a = 0; if ( !a ) { 1; } else { 0; }"); in TEST()
258 ExpectInt32(env.local(), 1, result); in TEST()
259 result = CompileRun("var a = 1; if ( !a ) { 1; } else { 0; }"); in TEST()
260 ExpectInt32(env.local(), 0, result); in TEST()