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 84c73661f..5371dbf61 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 2a8ee4e26..0ee96c124 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 09f5776a6..ff5452aaa 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 ccc4b1043..2e773dda3 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 7684cd918..dc6f91375 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 f65035071..882152b04 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 c10714b3f..02d981a45 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 2482faecd..e6cb737b3 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 ed321e683..818d82d63 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 14f9cc410..894c65e92 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 c67c5f6a5..8e1d150c6 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 cdf721374..44e16e8f8 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 }'); |