diff options
Diffstat (limited to 'test/built-ins/Function/length')
12 files changed, 26 insertions, 26 deletions
diff --git a/test/built-ins/Function/length/15.3.3.2-1.js b/test/built-ins/Function/length/15.3.3.2-1.js index 5371dbf61..84c73661f 100644 --- a/test/built-ins/Function/length/15.3.3.2-1.js +++ b/test/built-ins/Function/length/15.3.3.2-1.js @@ -6,7 +6,7 @@ es5id: 15.3.3.2-1 description: Function.length - data property with value 1 ---*/ -var desc = Object.getOwnPropertyDescriptor(Function, "length"); + var desc = Object.getOwnPropertyDescriptor(Function,"length"); assert.sameValue(desc.value, 1, 'desc.value'); assert.sameValue(desc.writable, false, 'desc.writable'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js index 0ee96c124..2a8ee4e26 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js @@ -11,7 +11,7 @@ description: > null) ---*/ -var f = Function("arg1,arg2,arg3", "arg4,arg5", null); +var f = Function("arg1,arg2,arg3","arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js index ff5452aaa..09f5776a6 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js @@ -11,7 +11,7 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js index 2e773dda3..ccc4b1043 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js @@ -17,7 +17,7 @@ if (!(f.hasOwnProperty('length'))) { } //CHECK#2 -if (!delete f.length) { +if(!delete f.length){ $ERROR('#2: the function.length property does not have the attributes DontDelete.'); } diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js index dc6f91375..7684cd918 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js @@ -9,7 +9,7 @@ description: > Function("arg1,arg2,arg3","arg4,arg5", null) succeeds ---*/ -var f = Function("arg1,arg2,arg3", "arg4,arg5", null); +var f = Function("arg1,arg2,arg3","arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js index 882152b04..f65035071 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js @@ -9,7 +9,7 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) succeeds ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js index 02d981a45..c10714b3f 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = new Function("arg1,arg2,arg3", "arg4,arg5", null); +var f = new Function("arg1,arg2,arg3","arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function() {}); +verifyNotWritable(f, "length", null, function(){}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js index e6cb737b3..2482faecd 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = Function("arg1,arg2,arg3", null); +var f = Function("arg1,arg2,arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function() {}); +verifyNotWritable(f, "length", null, function(){}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js index 818d82d63..ed321e683 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function() {}); +verifyNotWritable(f, "length", null, function(){}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js index 894c65e92..14f9cc410 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js @@ -16,10 +16,10 @@ if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for (var key in f) - if (key == "length") - var lengthenumed = true; - +for(var key in f) + if(key=="length") + var lengthenumed=true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js index 8e1d150c6..c67c5f6a5 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js @@ -9,17 +9,17 @@ description: > Function("arg1,arg2,arg3","arg4,arg5", null) fails ---*/ -var f = Function("arg1,arg2,arg3", "arg5,arg4", null); +var f = Function("arg1,arg2,arg3","arg5,arg4", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for (var key in f) - if (key == "length") - var lengthenumed = true; - +for(var key in f) + if(key=="length") + var lengthenumed=true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js index 44e16e8f8..cdf721374 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js @@ -9,17 +9,17 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) fails ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for (var key in f) - if (key == "length") - var lengthenumed = true; - +for(var key in f) + if(key=="length") + var lengthenumed=true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); |