/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.4.5.js | 65 array[item++] = new TestCase( SECTION, "var MYVAR; --MYVAR", NaN, eval("var MYVAR; --MYVAR") ); 66 array[item++] = new TestCase( SECTION, "var MYVAR= void 0; --MYVAR", NaN, eval("var MYVAR=void 0; --MYVAR") ); 67 array[item++] = new TestCase( SECTION, "var MYVAR=null; --MYVAR", -1, eval("var MYVAR=null; --MYVAR") ); 68 array[item++] = new TestCase( SECTION, "var MYVAR=true; --MYVAR", 0, eval("var MYVAR=true; --MYVAR") ); 69 array[item++] = new TestCase( SECTION, "var MYVAR=false; --MYVAR", -1, eval("var MYVAR=false; --MYVAR") ); 74 array[item++] = new TestCase( SECTION, "var MYVAR=Number.POSITIVE_INFINITY;--MYVAR", Number.POSITIVE_INFINITY, eval("var MYVAR=Number.POSITIVE_INFINITY;--MYVAR") ); 75 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NEGATIVE_INFINITY;--MYVAR", Number.NEGATIVE_INFINITY, eval("var MYVAR=Number.NEGATIVE_INFINITY;--MYVAR") ); 76 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NaN;--MYVAR", Number.NaN, eval("var MYVAR=Number.NaN;--MYVAR") ); 80 array[item++] = new TestCase( SECTION, "var MYVAR=Number.POSITIVE_INFINITY;--MYVAR;MYVAR", Number.POSITIVE_INFINITY, eval("var MYVAR=Number.POSITIVE_INFINITY;--MYVAR;MYVAR") ); 81 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NEGATIVE_INFINITY;--MYVAR;MYVAR", Number.NEGATIVE_INFINITY, eval("var MYVAR=Number.NEGATIVE_INFINITY;--MYVAR;MYVAR") ) [all...] |
11.13.2-2.js | 60 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 /= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 /= VAR2") ); 61 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 /= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 /= VAR2; VAR1") ); 62 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 /= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 /= VAR2") ); 63 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 /= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 /= VAR2; VAR1") ); 64 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 /= VAR2", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 /= VAR2") ); 65 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 /= VAR2; VAR1", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 /= VAR2; VAR1") ); 68 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=1; VAR1 /= VAR2", 0, eval("VAR1 = 0; VAR2=1; VAR1 /= VAR2") ); 69 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=1; VAR1 /= VAR2;VAR1", 0, eval("VAR1 = 0; VAR2=1; VAR1 /= VAR2;VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 = 0xFF; VAR2 = 0xA, VAR1 /= VAR2", 25.5, eval("VAR1 = 0XFF; VAR2 = 0XA, VAR1 /= VAR2") ); 75 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR1 /= VAR2", 0, eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR1 /= VAR2; VAR1") ) [all...] |
11.1.1.js | 43 // this in global code and eval(this) in global code should return the global object. 51 "Global Code: eval('this.toString()')", 53 eval('this.toString()') ); 60 eval("var MYFUNC = new Function('return this.toString()'); MYFUNC()") ); 62 // eval( this ) in anonymous code called as a function should return that function's activation object 65 "Anonymous Code: var MYFUNC = new Function('return (eval(\"this.toString()\")'); (MYFUNC()).toString()", 67 eval("var MYFUNC = new Function('return eval(\"this.toString()\")'); (MYFUNC()).toString()") ); 69 // this and eval( this ) in anonymous code called as a constructor should return the object 74 eval("var MYFUNC = new Function('this.THIS = this'); ((new MYFUNC()).THIS).toString()") ) [all...] |
11.13.2-4.js | 60 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 += VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 += VAR2") ); 61 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 += VAR2; VAR1") ); 62 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 += VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 += VAR2") ); 63 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 += VAR2; VAR1") ); 64 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 += VAR2", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 += VAR2") ); 65 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 += VAR2; VAR1") ); 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 += VAR2; VAR1", Number.POSITIVE_INFINITY, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 += VAR2; VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 += VAR2; VAR1") ); 72 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 += VAR2; VAR1") ); 73 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 += VAR2; VAR1", Number.NEGATIVE_INFINITY, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 += VAR2; VAR1") ) [all...] |
11.13.2-5.js | 60 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 -= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 -= VAR2") ); 61 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=1; VAR1 -= VAR2; VAR1") ); 62 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 -= VAR2", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 -= VAR2") ); 63 array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NaN; VAR2=0; VAR1 -= VAR2; VAR1") ); 64 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 -= VAR2", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 -= VAR2") ); 65 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = 0; VAR2=Number.NaN; VAR1 -= VAR2; VAR1") ); 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 -= VAR2; VAR1", Number.POSITIVE_INFINITY, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 72 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 -= VAR2; VAR1", Number.NEGATIVE_INFINITY, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 73 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 -= VAR2; VAR1") ) [all...] |
/ndk/sources/host-tools/make-3.81/tests/scripts/functions/ |
eval | 3 $description = "Test the eval function."; 5 $details = "This is a test of the eval function in GNU make. 17 X = $(eval $(value Y)) 19 $(eval $(shell echo A = A)) 20 $(eval $(Y)) 21 $(eval A = C) 22 $(eval $(X)) 46 $(foreach v,$(VARS),$(eval $(call VARSET,$v,$v))) 60 # Test to make sure eval'ing inside conditionals works properly 76 $(eval $(Y) [all...] |
/external/v8/test/mjsunit/ |
global-const-var-conflicts.js | 33 eval("const a"); 34 try { eval("var a"); } catch (e) { caught++; assertTrue(e instanceof TypeError); } 36 try { eval("var a = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); } 39 eval("const b = 0"); 40 try { eval("var b"); } catch (e) { caught++; assertTrue(e instanceof TypeError); } 42 try { eval("var b = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); } 45 eval("var c"); 46 try { eval("const c"); } catch (e) { caught++; assertTrue(e instanceof TypeError); } 48 try { eval("const c = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); } 51 eval("var d = 0") [all...] |
global-load-from-eval.js | 28 // Tests global loads from eval. 34 assertEquals(27, eval('x')); 38 assertEquals(22, eval('x')); 41 assertEquals(44, eval('x')); 43 assertEquals(x, eval('x')); 46 assertEquals(x, eval('x')); 61 // Test loading of globals from deeply nested eval. This code is a 64 // global variable becomes shadowed by an eval-introduced variable. 67 eval(source); 73 eval(load) [all...] |
eval-enclosing-function-name.js | 28 // From within 'eval', the name of the enclosing function should be 35 f = function y() { return eval('typeof y'); }; 51 f = function y() { y = 3; return eval('typeof y'); } 59 f = function y() { var y = 3; return eval('typeof y'); } 63 f = function y() { eval('y = 3'); return typeof y; } 67 f = function y() { eval('y = 3'); return eval('typeof y'); } 71 f = function y() { eval('var y = 3'); return typeof y; } 75 f = function y() { eval('var y = 3'); return eval('typeof y'); [all...] |
invalid-lhs.js | 34 assertThrows("eval('var x') = 12"); 35 assertDoesNotThrow("if (false) eval('var x') = 12"); 42 assertThrows("++(eval('12'))"); 43 assertThrows("(eval('12'))++"); 44 assertDoesNotThrow("if (false) ++(eval('12'))"); 45 assertDoesNotThrow("if (false) (eval('12'))++"); 49 assertThrows("for (eval('var x') in [1]) print(12);"); 50 assertDoesNotThrow("if (false) for (eval('var x') in [1]) print(12);"); 54 assertThrows("for (eval('var x') = 1;;) print(12);"); 55 assertDoesNotThrow("if (false) for (eval('var x') = 1;;) print(12);") [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/LexicalConventions/ |
7.6.js | 48 eval("var c,d;c==d") ); 55 eval("var a=true;a") ); 61 eval("var a=true,b=false;a>b") ); 67 eval("var a=true,b=false;a<b") ); 73 eval("var a=0xFFFF,b=0X0FFF;a<=b") ); 79 eval("var a=0xFFFF,b=0XFFFE;a>=b") ); 85 eval("var a=true,b=false;a!=b") ); 90 eval("var a=false,b=false;a!=b") ); 95 eval("var a=true,b=false;a,b") ); 100 eval("var a=true,b=false;!a") ) [all...] |
/build/core/ |
multi_prebuilt.mk | 49 $(eval include $(CLEAR_VARS)) \ 50 $(eval LOCAL_IS_HOST_MODULE := $(2)) \ 51 $(eval LOCAL_MODULE_CLASS := $(3)) \ 52 $(eval LOCAL_MODULE_TAGS := $(4)) \ 53 $(eval OVERRIDE_BUILT_MODULE_PATH := $(5)) \ 54 $(eval LOCAL_UNINSTALLABLE_MODULE := $(6)) \ 55 $(eval tw := $(subst :, ,$(strip $(t)))) \ 58 $(eval LOCAL_MODULE := $(word 1,$(tw))) \ 59 $(eval LOCAL_SRC_FILES := $(word 2,$(tw))) \ 61 $(eval LOCAL_MODULE := $(basename $(notdir $(t)))) [all...] |
dex_preopt.mk | 45 $(eval _dbj_jar := $(DEXPREOPT_BOOT_JAR_DIR_FULL_PATH)/$(1).jar) 46 $(eval _dbj_odex := $(DEXPREOPT_BOOT_JAR_DIR_FULL_PATH)/$(1).odex) 47 $(eval _dbj_jar_no_dex := $(DEXPREOPT_BOOT_JAR_DIR_FULL_PATH)/$(1)_nodex.jar) 48 $(eval _dbj_src_jar := $(call intermediates-dir-for,JAVA_LIBRARIES,$(1),,COMMON)/javalib.jar) 49 $(eval $(_dbj_odex): PRIVATE_DBJ_JAR := $(_dbj_jar)) 61 $(eval _dbj_jar :=) 62 $(eval _dbj_odex :=) 63 $(eval _dbj_jar_no_dex :=) 64 $(eval _dbj_src_jar :=) 67 $(foreach b,$(DEXPREOPT_BOOT_JARS_MODULES),$(eval $(call _dexpreopt-boot-jar,$(b))) [all...] |
node_fns.mk | 30 $(foreach v,$(1),$(eval $(v):=)) 48 $(foreach v,$(2),$(eval $(strip $(1)).$(v):=$($(v)))) 72 $(eval $(2).$(v) := $($(1).$(v))) \ 73 $(eval $(1).$(v) :=) \ 102 $(eval h := |||$(subst $(space),|||,$(strip $(1)))|||) \ 103 $(eval h := $(subst |||$(strip $(2))|||,|||$(space)|||,$(h))) \ 104 $(eval h := $(word 1,$(h)) $(2) $(wordlist 2,9999,$(h))) \ 151 $(eval ### "Shorthand for the name of the target variable") \ 152 $(eval _eiv_tv := $(1).$(2).$(v)) \ 153 $(eval ### "Get the list of nodes that this variable inherits") [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/t/author/ |
pod-coverage.t | 6 eval "use Test::Pod::Coverage";
|
pod.t | 6 eval "use Test::Pod";
|
/external/valgrind/main/ |
autogen.sh | 6 eval $*
|
/external/skia/src/utils/ |
SkBoundaryPatch.cpp | 32 SkPoint SkBoundaryPatch::eval(SkScalar unitU, SkScalar unitV) { function in class:SkBoundaryPatch 34 SkPoint u = SkPointInterp(b->eval(SkBoundary::kLeft, SK_Scalar1 - unitV), 35 b->eval(SkBoundary::kRight, unitV), 37 SkPoint v = SkPointInterp(b->eval(SkBoundary::kTop, unitU), 38 b->eval(SkBoundary::kBottom, SK_Scalar1 - unitU), 55 *verts++ = this->eval(x * invR, yy); 65 SkPoint SkLineBoundary::eval(Edge e, SkScalar t) { function in class:SkLineBoundary 70 SkPoint SkCubicBoundary::eval(Edge e, SkScalar t) { function in class:SkCubicBoundary
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/ExecutionContexts/ |
10.2.2-2.js | 24 ECMA Section: 10.2.2 Eval Code 27 When control enters an execution context for eval code, the previous 50 var TITLE = "Eval Code"; 68 testcases[tc++] = new TestCase( SECTION, "eval( 'this == THIS' )", true, eval("this == THIS") ); 71 testcases[tc++] = new TestCase( SECTION, "eval(new MyObject('hello').value)", "hello", eval("value") ); 73 testcases[tc++] = new TestCase( SECTION, "eval(new MyObject('hello').getClass())", "[object Object]", eval("getClass()") ); 74 testcases[tc++] = new TestCase( SECTION, "eval(new MyObject('hello').toString())", "hello", eval("toString()") ) [all...] |
10.2.2-1.js | 24 ECMA Section: 10.2.2 Eval Code 27 When control enters an execution context for eval code, the previous 50 var TITLE = "Eval Code"; 56 var THIS = eval("this"); 74 eval(GLOBAL_PROPERTIES[i]) == eval( "THIS[GLOBAL_PROPERTIES[i]]") ); 77 // this in eval statements is the same as this value of the calling context 82 "eval( 'this == THIS' )", 89 "eval( 'this + \"\"' )", 95 "eval( 'this == THIS' )" [all...] |
/external/clang/test/CXX/temp/temp.arg/temp.arg.template/ |
p3-0x.cpp | 3 template <class T> struct eval; // expected-note 3{{template is declared here}} 6 struct eval<TT<T1, Rest...>> { }; struct 14 eval<A<int>> eA; 15 eval<B<int, float>> eB; 16 eval<C<17>> eC; // expected-error{{implicit instantiation of undefined template 'eval<C<17> >'}} 17 eval<D<int, 17>> eD; // expected-error{{implicit instantiation of undefined template 'eval<D<int, 17> >'}} 18 eval<E<int, float>> eE; // expected-error{{implicit instantiation of undefined template 'eval<E<int, float, 17> >} [all...] |
/external/v8/test/mjsunit/regress/ |
regress-124.js | 31 assertEquals("[object global]", eval("this.toString()")); 32 assertEquals("[object Undefined]", eval("toString()")); 34 assertEquals("[object global]", eval("var f; this.toString()")); 35 assertEquals("[object Undefined]", eval("var f; toString()")); 42 assertEquals("[object global]", eval("this.toString()")); 43 assertEquals("[object Undefined]", eval("toString()")); 45 assertEquals("[object global]", eval("var f; this.toString()")); 46 assertEquals("[object Undefined]", eval("var f; toString()")); 48 assertEquals("[object Undefined]", eval("f()")); 51 assertEquals("[object Arguments]", eval("arguments[0]()")) [all...] |
regress-186.js | 28 // Make sure that eval can introduce a local variable called __proto__. 43 eval("var __proto__ = o"); 45 eval("var x = 27"); 47 assertEquals(o, eval("__proto__")); 52 eval("const __proto__ = o"); 54 eval("var x = 27"); 56 assertEquals(o, eval("__proto__")); 61 eval("__proto__ = o"); 63 eval("x = 27"); 66 assertEquals(o, eval("__proto__")) [all...] |
/external/v8/test/mjsunit/compiler/ |
literals-assignment.js | 31 assertEquals(8, eval("(function() { return 8; })()")); 39 assertEquals(8, eval(code)); 46 assertEquals("abc", eval(code)); 55 assertEquals(8, eval(code)); 63 assertEquals(8, eval(code)); 70 assertEquals(8, eval(code)); 75 eval(code); 79 eval(code); 85 assertEquals(10, eval(code)); 88 eval(code) [all...] |
literals.js | 29 assertEquals(8, eval("8")); 31 assertEquals(null, eval("null")); 33 assertEquals("abc", eval("'abc'")); 35 assertEquals(8, eval("6;'abc';8")); 75 assertEquals([1,2,3,4], eval('[1,2,3,4]')); 76 assertEquals([[1,2],3,4], eval('[[1,2],3,4]')); 77 assertEquals([1,[2,3,4]], eval('[1,[2,3,4]]')); 79 assertEquals([1,2,3,4], eval('var a=1, b=2; [a,b,3,4]')) 80 assertEquals([1,2,3,4], eval('var a=1, b=2, c = [a,b,3,4]; c')); 84 assertEquals([2,4,6,8], eval(s)) [all...] |