mirror of https://github.com/tc39/test262.git
New Sputnik 'negative' metadata that included exception type was causing problems for SputnikConverter.
Took the easy fix and split the metadata into two: 'negative' and 'errortype'.
This commit is contained in:
parent
c52161e734
commit
b78c959d2a
|
@ -238,6 +238,7 @@ GlobalScopeTests["S12.14_A16_T6"]={"assertion":"TryStatement: \"try Block Catch\
|
|||
GlobalScopeTests["S12.14_A16_T7"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Block: \"{ StatementList }\". Checking if execution of \"try{} catch(){\" fails","id":"S12.14_A16_T7","path":"12_Statement\\12.14_The_try_Statement\\S12.14_A16_T7.js","negative":"."};
|
||||
GlobalScopeTests["S12.14_A16_T8"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Block: \"{ StatementList }\". Catch: \"catch (Identifier ) Block\". Checking if execution of \"try{} catch(){finally{}\" fails","id":"S12.14_A16_T8","path":"12_Statement\\12.14_The_try_Statement\\S12.14_A16_T8.js","negative":"."};
|
||||
GlobalScopeTests["S12.14_A16_T9"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Checking if execution of \"catch(){} finally{}\" fails","id":"S12.14_A16_T9","path":"12_Statement\\12.14_The_try_Statement\\S12.14_A16_T9.js","negative":"."};
|
||||
GlobalScopeTests["S12.1_A1"]={"assertion":"The production Block { } in strict code can't contain function declaration","description":"Trying to declare function at the Block statement","id":"S12.1_A1","path":"12_Statement\\12.1_Block\\S12.1_A1.js","negative":"."};
|
||||
GlobalScopeTests["S12.1_A4_T1"]={"assertion":"The production Block can't be inside of expression","description":"Checking if execution of \"y={__func}()\" fails","id":"S12.1_A4_T1","path":"12_Statement\\12.1_Block\\S12.1_A4_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.1_A4_T2"]={"assertion":"The production Block can't be inside of expression","description":"Checking if execution of \"y={x}\" fails","id":"S12.1_A4_T2","path":"12_Statement\\12.1_Block\\S12.1_A4_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.2_A8_T1"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x += 1\" fails","id":"S12.2_A8_T1","path":"12_Statement\\12.2_Variable_Statement\\S12.2_A8_T1.js","negative":"."};
|
||||
|
@ -254,8 +255,12 @@ GlobalScopeTests["S12.5_A2"]={"assertion":"In the \"if\" Statement eval in Expre
|
|||
GlobalScopeTests["S12.5_A6_T1"]={"assertion":"In the If statement expression must be enclosed in braces","description":"Checking if execution of \"if true\" fails","id":"S12.5_A6_T1","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A6_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A6_T2"]={"assertion":"In the If statement expression must be enclosed in braces","description":"Checking if execution of \"if false\" fails","id":"S12.5_A6_T2","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A6_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A8"]={"assertion":"In the \"if\" Statement empty expression is not allowed","description":"Checking if execution of \"if()\" fails","id":"S12.5_A8","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A8.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A9_T1"]={"assertion":"Function declaration within an \"if\" statement in strict code is not allowed","description":"Declaring function within an \"if\" statement","id":"S12.5_A9_T1","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A9_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A9_T2"]={"assertion":"Function declaration within an \"if\" statement in strict code is not allowed","description":"Declaring function within an \"if\" that is declared within the strict function","id":"S12.5_A9_T2","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A9_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A9_T3"]={"assertion":"Function declaration within an \"if\" statement is not allowed","description":"Declaring function within an \"if\" statement that is declared within the function declaration","id":"S12.5_A9_T3","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A9_T3.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A12"]={"assertion":"Any statement within \"do-while\" construction must be a compound","description":"Checking if execution of \"do var x=1; var y =2; while (0)\" fails","id":"S12.6.1_A12","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A12.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A13_T1"]={"assertion":"FunctionDeclaration within a \"do-while\" Block in strict code is not allowed","description":"Declaring function within a \"do-while\" loop","id":"S12.6.1_A13_T1","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A13_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A13_T2"]={"assertion":"FunctionDeclaration within a \"do-while\" Block in strict code is not allowed","description":"Declaring a function within a \"do-while\" loop that is within a strict function","id":"S12.6.1_A13_T2","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A13_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A13_T3"]={"assertion":"FunctionDeclaration within a \"do-while\" Block is not allowed","description":"Declaring a function within a \"do-while\" loop that is within a function declaration itself","id":"S12.6.1_A13_T3","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A13_T3.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A15"]={"assertion":"Block within a \"do-while\" Expression is not allowed","description":"Using \"{0}\" Block as an Expression","id":"S12.6.1_A15","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A15.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A6_T1"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{} while 1\" fails","id":"S12.6.1_A6_T1","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A6_T1.js","negative":"."};
|
||||
|
@ -343,3 +348,19 @@ GlobalScopeTests["S15.2.4.6_A12"]={"assertion":"Let O be the result of calling T
|
|||
GlobalScopeTests["S15.2.4.6_A13"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.6_A13","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.6_Object.prototype.isPrototypeOf\\S15.2.4.6_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.7_A12"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.7_A12","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.7_Object.prototype.propertyIsEnumerable\\S15.2.4.7_A12.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.7_A13"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.7_A13","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.7_Object.prototype.propertyIsEnumerable\\S15.2.4.7_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.2_A12"]={"assertion":"The Function.prototype.toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"","id":"S15.3.4.2_A12","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.2_Function.prototype.toString\\S15.3.4.2_A12.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.2_A13"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"","id":"S15.3.4.2_A13","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.2_Function.prototype.toString\\S15.3.4.2_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.2_A14"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"","id":"S15.3.4.2_A14","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.2_Function.prototype.toString\\S15.3.4.2_A14.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.2_A15"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"Whether or not they are callable, RegExp objects are not Function objects, so toString should throw a TypeError.","id":"S15.3.4.2_A15","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.2_Function.prototype.toString\\S15.3.4.2_A15.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.2_A16"]={"assertion":"The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.","description":"The String constructor, given an object, should invoke that object's toString method as a method, i.e., with its this value bound to that object.","id":"S15.3.4.2_A16","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.2_Function.prototype.toString\\S15.3.4.2_A16.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.3_A13"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.3_A13","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.3_Function.prototype.apply\\S15.3.4.3_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.3_A14"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.3_A14","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.3_Function.prototype.apply\\S15.3.4.3_A14.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.3_A15"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.3_A15","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.3_Function.prototype.apply\\S15.3.4.3_A15.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.4_A13"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.4_A13","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.4_Function.prototype.call\\S15.3.4.4_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.4_A14"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.4_A14","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.4_Function.prototype.call\\S15.3.4.4_A14.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.4_A15"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.4_A15","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.4_Function.prototype.call\\S15.3.4.4_A15.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.5_A1"]={"assertion":"\"caller\" of bound function is poisoned (step 20)","description":"","id":"S15.3.4.5_A1","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.5_Function.prototype.bind\\S15.3.4.5_A1.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.5_A13"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.5_A13","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.5_Function.prototype.bind\\S15.3.4.5_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.5_A14"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.5_A14","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.5_Function.prototype.bind\\S15.3.4.5_A14.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.5_A15"]={"assertion":"If IsCallable(func) is false, then throw a TypeError exception.","description":"","id":"S15.3.4.5_A15","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.5_Function.prototype.bind\\S15.3.4.5_A15.js","negative":"."};
|
||||
GlobalScopeTests["S15.3.4.5_A2"]={"assertion":"\"arguments\" of bound function is poisoned (step 21)","description":"","id":"S15.3.4.5_A2","path":"15_Native\\15.3_Function_Objects\\15.3.4_Properties_of_the_Function_Prototype_Object\\15.3.4.5_Function.prototype.bind\\S15.3.4.5_A2.js","negative":"."};
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 12.1;
|
||||
* @assertion: The production Block { } in strict code can't contain function declaration;
|
||||
* @description: Trying to declare function at the Block statement;
|
||||
* @negative SyntaxError;
|
||||
* @negative
|
||||
* @errortype: SyntaxError;
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 12.5;
|
||||
* @assertion: Function declaration within an "if" statement in strict code is not allowed;
|
||||
* @description: Declaring function within an "if" statement;
|
||||
* @negative SyntaxError;
|
||||
* @negative
|
||||
* @errortype: SyntaxError;
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 12.5;
|
||||
* @assertion: Function declaration within an "if" statement in strict code is not allowed;
|
||||
* @description: Declaring function within an "if" that is declared within the strict function;
|
||||
* @negative SyntaxError;
|
||||
* @negative
|
||||
* @errortype: SyntaxError;
|
||||
*/
|
||||
|
||||
(function(){
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 12.6.1, 13;
|
||||
* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
|
||||
* @description: Declaring function within a "do-while" loop;
|
||||
* @negative SyntaxError;
|
||||
* @negative
|
||||
* @errortype: SyntaxError;
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 12.6.1, 13;
|
||||
* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
|
||||
* @description: Declaring a function within a "do-while" loop that is within a strict function;
|
||||
* @negative SyntaxError;
|
||||
* @negative
|
||||
* @errortype: SyntaxError;
|
||||
*/
|
||||
|
||||
(function(){
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.2_A12;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The Function.prototype.toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.toString.call(undefined);
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.2_A13;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.toString.call(null);
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.2_A14;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.toString.call({});
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @description: Whether or not they are callable, RegExp objects are not Function objects, so toString should throw a TypeError.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.toString.call(/x/);
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @description: The String constructor, given an object, should invoke that object's toString method as a method, i.e., with its this value bound to that object.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
var obj = {toString: Function.prototype.toString};
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.3_A13;
|
||||
* @section: 15.3.4.3;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.apply.call(undefined, {}, []);
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.3_A14;
|
||||
* @section: 15.3.4.3;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.apply.call(null, {}, []);
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.3_A15;
|
||||
* @section: 15.3.4.3;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.apply.call({}, {}, []);
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.4_A13;
|
||||
* @section: 15.3.4.4;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.call.call(undefined, {});
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.4_A14;
|
||||
* @section: 15.3.4.4;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.call.call(null, {});
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.4_A15;
|
||||
* @section: 15.3.4.4;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.call.call({}, {});
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 15.3.4.5;
|
||||
* @assertion: "caller" of bound function is poisoned (step 20);
|
||||
* @description A bound function should fail to find its "caller";
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
function foo() { return bar.caller; }
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.5_A13;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.bind.call(undefined, {});
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.5_A14;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.bind.call(null, {});
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* @name: S15.3.4.5_A15;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
Function.prototype.bind.call({}, {});
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* @section: 15.3.4.5;
|
||||
* @assertion: "arguments" of bound function is poisoned (step 21);
|
||||
* @description a bound function should fail to find the bound function "arguments";
|
||||
* @negative TypeError;
|
||||
* @negative
|
||||
* @errortype: TypeError;
|
||||
*/
|
||||
|
||||
function foo() { return bar.arguments; }
|
||||
|
|
|
@ -1,34 +1,14 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S12.1_A1;
|
||||
* @section: 12.1;
|
||||
* @assertion: The production Block { } in strict code can't contain function declaration;
|
||||
* @description: Trying to declare function at the Block statement;
|
||||
* @negative SyntaxError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S12.1_A1",
|
||||
|
||||
path: "TestCases/12_Statement/12.1_Block/S12.1_A1.js",
|
||||
|
||||
assertion: "The production Block { } in strict code can\'t contain function declaration",
|
||||
|
||||
description: "Trying to declare function at the Block statement",
|
||||
|
||||
test: function testcase() {
|
||||
"use strict";
|
||||
"use strict";
|
||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
||||
|
||||
{
|
||||
function __func(){}
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S12.5_A9_T1;
|
||||
* @section: 12.5;
|
||||
* @assertion: Function declaration within an "if" statement in strict code is not allowed;
|
||||
* @description: Declaring function within an "if" statement;
|
||||
* @negative SyntaxError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S12.5_A9_T1",
|
||||
|
||||
path: "TestCases/12_Statement/12.5_The_if_Statement/S12.5_A9_T1.js",
|
||||
|
||||
assertion: "Function declaration within an \"if\" statement in strict code is not allowed",
|
||||
|
||||
description: "Declaring function within an \"if\" statement",
|
||||
|
||||
test: function testcase() {
|
||||
"use strict";
|
||||
"use strict";
|
||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
||||
|
||||
if (true) {
|
||||
|
@ -31,6 +13,4 @@ if (true) {
|
|||
function __func(){};
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S12.5_A9_T2;
|
||||
* @section: 12.5;
|
||||
* @assertion: Function declaration within an "if" statement in strict code is not allowed;
|
||||
* @description: Declaring function within an "if" that is declared within the strict function;
|
||||
* @negative SyntaxError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S12.5_A9_T2",
|
||||
|
||||
path: "TestCases/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js",
|
||||
|
||||
assertion: "Function declaration within an \"if\" statement in strict code is not allowed",
|
||||
|
||||
description: "Declaring function within an \"if\" that is declared within the strict function",
|
||||
|
||||
test: function testcase() {
|
||||
(function(){
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
if (true) {
|
||||
|
@ -33,6 +15,4 @@ if (true) {
|
|||
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,34 +1,14 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S12.6.1_A13_T1;
|
||||
* @section: 12.6.1, 13;
|
||||
* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
|
||||
* @description: Declaring function within a "do-while" loop;
|
||||
* @negative SyntaxError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S12.6.1_A13_T1",
|
||||
|
||||
path: "TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js",
|
||||
|
||||
assertion: "FunctionDeclaration within a \"do-while\" Block in strict code is not allowed",
|
||||
|
||||
description: "Declaring function within a \"do-while\" loop",
|
||||
|
||||
test: function testcase() {
|
||||
"use strict";
|
||||
"use strict";
|
||||
if (!strict_mode) { throw new SyntaxError('unspecified case'); }
|
||||
|
||||
do{
|
||||
function __func(){};
|
||||
} while(0);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S12.6.1_A13_T2;
|
||||
* @section: 12.6.1, 13;
|
||||
* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
|
||||
* @description: Declaring a function within a "do-while" loop that is within a strict function;
|
||||
* @negative SyntaxError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S12.6.1_A13_T2",
|
||||
|
||||
path: "TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js",
|
||||
|
||||
assertion: "FunctionDeclaration within a \"do-while\" Block in strict code is not allowed",
|
||||
|
||||
description: "Declaring a function within a \"do-while\" loop that is within a strict function",
|
||||
|
||||
test: function testcase() {
|
||||
(function(){
|
||||
(function(){
|
||||
"use strict";
|
||||
do{
|
||||
function __func(){};
|
||||
|
@ -30,6 +12,4 @@ do{
|
|||
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* @name: S15.10.2.7_A4_T2;
|
||||
* @section: 15.10.2.7;
|
||||
* @assertion: The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty;
|
||||
* @description: Execute /[^"S15.10.2.7_A4_T2"don\'t"') and check results;
|
||||
* @description: Execute /[^"]* /.exec('alice said: "don\'t"') and check results;
|
||||
*/
|
||||
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.2_A12;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The Function.prototype.toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.2_A12",
|
||||
Function.prototype.toString.call(undefined);
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A12.js",
|
||||
|
||||
assertion: "The Function.prototype.toString function is not generic; it throws a TypeError exception if its this value is not a Function object.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.toString.call(undefined);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.2_A13;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.2_A13",
|
||||
Function.prototype.toString.call(null);
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A13.js",
|
||||
|
||||
assertion: "The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.toString.call(null);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.2_A14;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.2_A14",
|
||||
Function.prototype.toString.call({});
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A14.js",
|
||||
|
||||
assertion: "The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.toString.call({});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,29 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.2_A15;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @description: Whether or not they are callable, RegExp objects are not Function objects, so toString should throw a TypeError.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.2_A15",
|
||||
Function.prototype.toString.call(/x/);
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A15.js",
|
||||
|
||||
assertion: "The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.",
|
||||
|
||||
description: "Whether or not they are callable, RegExp objects are not Function objects, so toString should throw a TypeError.",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.toString.call(/x/);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,31 +1,11 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.2_A16;
|
||||
* @section: 15.3.4.2;
|
||||
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
|
||||
* @description: The String constructor, given an object, should invoke that object's toString method as a method, i.e., with its this value bound to that object.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.2_A16",
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.2_Function.prototype.toString/S15.3.4.2_A16.js",
|
||||
|
||||
assertion: "The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.",
|
||||
|
||||
description: "The String constructor, given an object, should invoke that object\'s toString method as a method, i.e., with its this value bound to that object.",
|
||||
|
||||
test: function testcase() {
|
||||
var obj = {toString: Function.prototype.toString};
|
||||
var obj = {toString: Function.prototype.toString};
|
||||
|
||||
String(obj);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.3_A13;
|
||||
* @section: 15.3.4.3;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.3_A13",
|
||||
Function.prototype.apply.call(undefined, {}, []);
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.3_Function.prototype.apply/S15.3.4.3_A13.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.apply.call(undefined, {}, []);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.3_A14;
|
||||
* @section: 15.3.4.3;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.3_A14",
|
||||
Function.prototype.apply.call(null, {}, []);
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.3_Function.prototype.apply/S15.3.4.3_A14.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.apply.call(null, {}, []);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.3_A15;
|
||||
* @section: 15.3.4.3;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.3_A15",
|
||||
Function.prototype.apply.call({}, {}, []);
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.3_Function.prototype.apply/S15.3.4.3_A15.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.apply.call({}, {}, []);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.4_A13;
|
||||
* @section: 15.3.4.4;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.4_A13",
|
||||
Function.prototype.call.call(undefined, {});
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.4_Function.prototype.call/S15.3.4.4_A13.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.call.call(undefined, {});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.4_A14;
|
||||
* @section: 15.3.4.4;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.4_A14",
|
||||
Function.prototype.call.call(null, {});
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.4_Function.prototype.call/S15.3.4.4_A14.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.call.call(null, {});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,28 +1,9 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.4_A15;
|
||||
* @section: 15.3.4.4;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.4_A15",
|
||||
Function.prototype.call.call({}, {});
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.4_Function.prototype.call/S15.3.4.4_A15.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.call.call({}, {});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,32 +1,12 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.5_A1;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: "caller" of bound function is poisoned (step 20);
|
||||
* @description A bound function should fail to find its "caller";
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.5_A1",
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A1.js",
|
||||
|
||||
assertion: "\"caller\" of bound function is poisoned (step 20)",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
function foo() { return bar.caller; }
|
||||
function foo() { return bar.caller; }
|
||||
var bar = foo.bind({});
|
||||
function baz() { return bar(); }
|
||||
baz();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,29 +1,10 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.5_A13;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.5_A13",
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A13.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.bind.call(undefined, {});
|
||||
Function.prototype.bind.call(undefined, {});
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,29 +1,10 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.5_A14;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.5_A14",
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A14.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.bind.call(null, {});
|
||||
Function.prototype.bind.call(null, {});
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,29 +1,10 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.5_A15;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.5_A15",
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A15.js",
|
||||
|
||||
assertion: "If IsCallable(func) is false, then throw a TypeError exception.",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
Function.prototype.bind.call({}, {});
|
||||
Function.prototype.bind.call({}, {});
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,32 +1,12 @@
|
|||
// Copyright 2011 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.3.4.5_A1;
|
||||
* @section: 15.3.4.5;
|
||||
* @assertion: "arguments" of bound function is poisoned (step 21);
|
||||
* @description a bound function should fail to find the bound function "arguments";
|
||||
* @negative TypeError;
|
||||
*/
|
||||
|
||||
|
||||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S15.3.4.5_A2",
|
||||
|
||||
path: "TestCases/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A2.js",
|
||||
|
||||
assertion: "\"arguments\" of bound function is poisoned (step 21)",
|
||||
|
||||
description: "",
|
||||
|
||||
test: function testcase() {
|
||||
function foo() { return bar.arguments; }
|
||||
function foo() { return bar.arguments; }
|
||||
var bar = foo.bind({});
|
||||
function baz() { return bar(); }
|
||||
baz();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace Microsoft.Sputnik.Interop.ParserEngine
|
|||
Console.WriteLine();
|
||||
}
|
||||
|
||||
string[] args = { script.Header, script.id, script.path, InsertStringEscapes(script.assertion), InsertStringEscapes(script.description), script.ReplicationCode, body, preCondition, script.InitialComment };
|
||||
string[] args = { script.Header, script.id, script.path.Replace("\\", "/"), InsertStringEscapes(script.assertion), InsertStringEscapes(script.description), script.ReplicationCode, body, preCondition, script.InitialComment };
|
||||
destFullPath = Path.Combine(destDir, string.Format(@"{0}.js", script.id));
|
||||
|
||||
try
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<StartArguments>E:\test262-msft\test\suite\sputnik\conformance E:\test262-msft\test\suite\sputnik_new01</StartArguments>
|
||||
<StartArguments>G:\262\test262\test\suite\sputnik\conformance G:\262\test262\test\suite\sputnik_new01</StartArguments>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -15,6 +15,7 @@ namespace Microsoft.Sputnik.Interop.ParserEngine
|
|||
|
||||
if (args == null || args.Length < 2)
|
||||
{
|
||||
System.Console.WriteLine("You must specify the source directory and the destination directory!");
|
||||
return;
|
||||
}
|
||||
source = args[0];
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
ES5Harness.registerTest( {{
|
||||
id: "{1}",
|
||||
|
||||
path: "{2}",
|
||||
path: "TestCases/{2}",
|
||||
|
||||
description: "{4}",
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ES5Harness.registerTest( {{
|
||||
id: "{1}",
|
||||
|
||||
path: "{2}",
|
||||
path: "TestCases/{2}",
|
||||
|
||||
assertion: "{3}",
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ES5Harness.registerTest( {{
|
||||
id: "{1}",
|
||||
|
||||
path: "{2}",
|
||||
path: "TestCases/{2}",
|
||||
|
||||
assertion: "{3}",
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ES5Harness.registerTest( {{
|
||||
id: "{1}",
|
||||
|
||||
path: "{2}",
|
||||
path: "TestCases/{2}",
|
||||
|
||||
description: "{4}",
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ES5Harness.registerTest( {{
|
||||
id: "{1}",
|
||||
|
||||
path: "{2}",
|
||||
path: "TestCases/{2}",
|
||||
|
||||
assertion: "{3}",
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ES5Harness.registerTest( {{
|
||||
id: "{1}",
|
||||
|
||||
path: "{2}",
|
||||
path: "TestCases/{2}",
|
||||
|
||||
assertion: "{3}",
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -56,36 +56,20 @@ GlobalScopeTests["S7.5.2_A1.6"]={"assertion":"The \"delete\" token can not be us
|
|||
GlobalScopeTests["S7.5.2_A1.7"]={"assertion":"The \"do\" token can not be used as identifier","description":"Checking if execution of \"do=1\" fails","id":"S7.5.2_A1.7","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.2_Keywords\\S7.5.2_A1.7.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.2_A1.8"]={"assertion":"The \"else\" token can not be used as identifier","description":"Checking if execution of \"else=1\" fails","id":"S7.5.2_A1.8","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.2_Keywords\\S7.5.2_A1.8.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.2_A1.9"]={"assertion":"The \"finally\" token can not be used as identifier","description":"Checking if execution of \"finally=1\" fails","id":"S7.5.2_A1.9","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.2_Keywords\\S7.5.2_A1.9.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.1"]={"assertion":"The \"abstract\" token can not be used as identifier","description":"Checking if execution of \"abstract=1\" fails","id":"S7.5.3_A1.1","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.1.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.10"]={"assertion":"The \"export\" token can not be used as identifier","description":"Checking if execution of \"export=1\" fails","id":"S7.5.3_A1.10","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.10.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.11"]={"assertion":"The \"extends\" token can not be used as identifier","description":"Checking if execution of \"extends=1\" fails","id":"S7.5.3_A1.11","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.11.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.12"]={"assertion":"The \"final\" token can not be used as identifier","description":"Checking if execution of \"final=1\" fails","id":"S7.5.3_A1.12","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.12.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.13"]={"assertion":"The \"float\" token can not be used as identifier","description":"Checking if execution of \"float=1\" fails","id":"S7.5.3_A1.13","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.13.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.14"]={"assertion":"The \"goto\" token can not be used as identifier","description":"Checking if execution of \"goto=1\" fails","id":"S7.5.3_A1.14","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.14.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.15"]={"assertion":"The \"implements\" token can not be used as identifier","description":"Checking if execution of \"implements=1\" fails","id":"S7.5.3_A1.15","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.15.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.15"]={"assertion":"The \"implements\" token can not be used as identifier in strict code","description":"Checking if execution of \"implements=1\" fails in strict code","id":"S7.5.3_A1.15","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.15.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.16"]={"assertion":"The \"import\" token can not be used as identifier","description":"Checking if execution of \"import=1\" fails","id":"S7.5.3_A1.16","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.16.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.17"]={"assertion":"The \"int\" token can not be used as identifier","description":"Checking if execution of \"int=1\" fails","id":"S7.5.3_A1.17","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.17.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.18"]={"assertion":"The \"interface\" token can not be used as identifier","description":"Checking if execution of \"interface = 1\" fails","id":"S7.5.3_A1.18","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.18.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.19"]={"assertion":"The \"long\" token can not be used as identifier","description":"Checking if execution of \"long=1\" fails","id":"S7.5.3_A1.19","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.19.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.2"]={"assertion":"The \"boolean\" token can not be used as identifier","description":"Checking if execution of \"boolean=1\" fails","id":"S7.5.3_A1.2","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.2.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.20"]={"assertion":"The \"native\" token can not be used as identifier","description":"Checking if execution of \"native=1\" fails","id":"S7.5.3_A1.20","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.20.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.21"]={"assertion":"The \"package\" token can not be used as identifier","description":"Checking if execution of \"package=1\" fails","id":"S7.5.3_A1.21","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.21.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.22"]={"assertion":"The \"private\" token can not be used as identifier","description":"Checking if execution of \"private=1\" fails","id":"S7.5.3_A1.22","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.22.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.23"]={"assertion":"The \"protected\" token can not be used as identifier","description":"Checking if execution of \"protected=1\" fails","id":"S7.5.3_A1.23","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.23.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.24"]={"assertion":"The \"public\" token can not be used as identifier","description":"Checking if execution of \"public=1\" fails","id":"S7.5.3_A1.24","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.24.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.25"]={"assertion":"The \"short\" token can not be used as identifier","description":"Checking if execution of \"short=1\" fails","id":"S7.5.3_A1.25","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.25.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.26"]={"assertion":"The \"static\" token can not be used as identifier","description":"Checking if execution of \"static=1\" fails","id":"S7.5.3_A1.26","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.26.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.18"]={"assertion":"The \"interface\" token can not be used as identifier in strict code","description":"Checking if execution of \"interface = 1\" fails in","id":"S7.5.3_A1.18","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.18.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.21"]={"assertion":"The \"package\" token can not be used as identifier in strict code","description":"Checking if execution of \"package=1\" fails in strict code","id":"S7.5.3_A1.21","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.21.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.22"]={"assertion":"The \"private\" token can not be used as identifier in strict code","description":"Checking if execution of \"private=1\" fails in strict code","id":"S7.5.3_A1.22","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.22.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.23"]={"assertion":"The \"protected\" token can not be used as identifier in strict code","description":"Checking if execution of \"protected=1\" fails in","id":"S7.5.3_A1.23","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.23.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.24"]={"assertion":"The \"public\" token can not be used as identifier in strict code","description":"Checking if execution of \"public=1\" fails in strict code","id":"S7.5.3_A1.24","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.24.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.26"]={"assertion":"The \"static\" token can not be used as identifier in strict code","description":"Checking if execution of \"static=1\" fails in strict code","id":"S7.5.3_A1.26","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.26.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.27"]={"assertion":"The \"super\" token can not be used as identifier","description":"Checking if execution of \"super=1\" fails","id":"S7.5.3_A1.27","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.27.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.28"]={"assertion":"The \"synchronized\" token can not be used as identifier","description":"Checking if execution of \"synchronized=1\" fails","id":"S7.5.3_A1.28","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.28.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.29"]={"assertion":"The \"throws\" token can not be used as identifier","description":"Checking if execution of \"throws=1\" fails","id":"S7.5.3_A1.29","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.29.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.3"]={"assertion":"The \"byte\" token can not be used as identifier","description":"Checking if execution of \"byte=1\" fails","id":"S7.5.3_A1.3","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.3.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.30"]={"assertion":"The \"transient\" token can not be used as identifier","description":"Checking if execution of \"transient=1\" fails","id":"S7.5.3_A1.30","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.30.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.31"]={"assertion":"The \"volatile\" token can not be used as identifier","description":"Checking if execution of \"volatile=1\" fails","id":"S7.5.3_A1.31","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.31.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.4"]={"assertion":"The \"char\" token can not be used as identifier","description":"Checking if execution of \"char=1\" fails","id":"S7.5.3_A1.4","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.4.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.5"]={"assertion":"The \"class\" token can not be used as identifier","description":"Checking if execution of \"class=1\" fails","id":"S7.5.3_A1.5","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.5.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.6"]={"assertion":"The \"const\" token can not be used as identifier","description":"Checking if execution of \"const=1\" fails","id":"S7.5.3_A1.6","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.6.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.7"]={"assertion":"The \"debugger\" token can not be used as identifier","description":"Checking if execution of \"debugger=1\" fails","id":"S7.5.3_A1.7","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.7.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.8"]={"assertion":"The \"double\" token can not be used as identifier","description":"Checking if execution of \"double=1\" fails","id":"S7.5.3_A1.8","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.8.js","negative":"."};
|
||||
GlobalScopeTests["S7.5.3_A1.9"]={"assertion":"The \"enum\" token can not be used as identifier","description":"Checking if execution of \"enum=1\" fails","id":"S7.5.3_A1.9","path":"07_Lexical_Conventions\\7.5_Tokens\\7.5.3_Future_Reserved_Words\\S7.5.3_A1.9.js","negative":"."};
|
||||
GlobalScopeTests["S7.7_A2_T1"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use {} as a Unicode \\u007B\\u007D","id":"S7.7_A2_T1","path":"07_Lexical_Conventions\\7.7_Punctuators\\S7.7_A2_T1.js","negative":"."};
|
||||
GlobalScopeTests["S7.7_A2_T10"]={"assertion":"Punctuator cannot be expressed as a Unicode escape sequence consisting of six characters, namely \\u plus four hexadecimal digits","description":"Try to use \/ as a Unicode \\u002F","id":"S7.7_A2_T10","path":"07_Lexical_Conventions\\7.7_Punctuators\\S7.7_A2_T10.js","negative":"."};
|
||||
|
@ -254,7 +238,6 @@ GlobalScopeTests["S12.14_A16_T6"]={"assertion":"TryStatement: \"try Block Catch\
|
|||
GlobalScopeTests["S12.14_A16_T7"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Block: \"{ StatementList }\". Checking if execution of \"try{} catch(){\" fails","id":"S12.14_A16_T7","path":"12_Statement\\12.14_The_try_Statement\\S12.14_A16_T7.js","negative":"."};
|
||||
GlobalScopeTests["S12.14_A16_T8"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Block: \"{ StatementList }\". Catch: \"catch (Identifier ) Block\". Checking if execution of \"try{} catch(){finally{}\" fails","id":"S12.14_A16_T8","path":"12_Statement\\12.14_The_try_Statement\\S12.14_A16_T8.js","negative":"."};
|
||||
GlobalScopeTests["S12.14_A16_T9"]={"assertion":"TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block Catch Finally\"","description":"Checking if execution of \"catch(){} finally{}\" fails","id":"S12.14_A16_T9","path":"12_Statement\\12.14_The_try_Statement\\S12.14_A16_T9.js","negative":"."};
|
||||
GlobalScopeTests["S12.1_A1"]={"assertion":"The production Block { } can't contain function declaration","description":"Trying to declare function at the Block statement","id":"S12.1_A1","path":"12_Statement\\12.1_Block\\S12.1_A1.js","negative":"."};
|
||||
GlobalScopeTests["S12.1_A4_T1"]={"assertion":"The production Block can't be inside of expression","description":"Checking if execution of \"y={__func}()\" fails","id":"S12.1_A4_T1","path":"12_Statement\\12.1_Block\\S12.1_A4_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.1_A4_T2"]={"assertion":"The production Block can't be inside of expression","description":"Checking if execution of \"y={x}\" fails","id":"S12.1_A4_T2","path":"12_Statement\\12.1_Block\\S12.1_A4_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.2_A8_T1"]={"assertion":"Only AssignmentExpression is admitted when variable is initialized","description":"Checking if execution of \"var x += 1\" fails","id":"S12.2_A8_T1","path":"12_Statement\\12.2_Variable_Statement\\S12.2_A8_T1.js","negative":"."};
|
||||
|
@ -271,12 +254,8 @@ GlobalScopeTests["S12.5_A2"]={"assertion":"In the \"if\" Statement eval in Expre
|
|||
GlobalScopeTests["S12.5_A6_T1"]={"assertion":"In the If statement expression must be enclosed in braces","description":"Checking if execution of \"if true\" fails","id":"S12.5_A6_T1","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A6_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A6_T2"]={"assertion":"In the If statement expression must be enclosed in braces","description":"Checking if execution of \"if false\" fails","id":"S12.5_A6_T2","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A6_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A8"]={"assertion":"In the \"if\" Statement empty expression is not allowed","description":"Checking if execution of \"if()\" fails","id":"S12.5_A8","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A8.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A9_T1"]={"assertion":"Function declaration within an \"if\" statement is not allowed","description":"Declaring function within an \"if\" statement","id":"S12.5_A9_T1","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A9_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A9_T2"]={"assertion":"Function declaration within an \"if\" statement is not allowed","description":"Declaring function within and \"if\" that is declared within the function call","id":"S12.5_A9_T2","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A9_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.5_A9_T3"]={"assertion":"Function declaration within an \"if\" statement is not allowed","description":"Declaring function within an \"if\" statement that is declared within the function declaration","id":"S12.5_A9_T3","path":"12_Statement\\12.5_The_if_Statement\\S12.5_A9_T3.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A12"]={"assertion":"Any statement within \"do-while\" construction must be a compound","description":"Checking if execution of \"do var x=1; var y =2; while (0)\" fails","id":"S12.6.1_A12","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A12.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A13_T1"]={"assertion":"FunctionDeclaration within a \"do-while\" Block is not allowed","description":"Declaring function within a \"do-while\" loop","id":"S12.6.1_A13_T1","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A13_T1.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A13_T2"]={"assertion":"FunctionDeclaration within a \"do-while\" Block is not allowed","description":"Declaring a function within a \"do-while\" loop that is within a function call","id":"S12.6.1_A13_T2","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A13_T2.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A13_T3"]={"assertion":"FunctionDeclaration within a \"do-while\" Block is not allowed","description":"Declaring a function within a \"do-while\" loop that is within a function declaration itself","id":"S12.6.1_A13_T3","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A13_T3.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A15"]={"assertion":"Block within a \"do-while\" Expression is not allowed","description":"Using \"{0}\" Block as an Expression","id":"S12.6.1_A15","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A15.js","negative":"."};
|
||||
GlobalScopeTests["S12.6.1_A6_T1"]={"assertion":"Expression in \"do-while\" IterationStatement is bracketed with braces","description":"Checking if execution of \"do{} while 1\" fails","id":"S12.6.1_A6_T1","path":"12_Statement\\12.6_Iteration_Statements\\12.6.1_The_do_while_Statement\\S12.6.1_A6_T1.js","negative":"."};
|
||||
|
@ -353,3 +332,14 @@ GlobalScopeTests["S15.1_A1_T1"]={"assertion":"The global object does not have a
|
|||
GlobalScopeTests["S15.1_A1_T2"]={"assertion":"The global object does not have a [[Construct]] property","description":"It is not possible to use the global object as a constructor","id":"S15.1_A1_T2","path":"15_Native\\15.1_The_Global_Object\\S15.1_A1_T2.js","negative":"."};
|
||||
GlobalScopeTests["S15.1_A2_T1"]={"assertion":"The global object does not have a [[Call]] property","description":"It is not possible to invoke the global object as a function","id":"S15.1_A2_T1","path":"15_Native\\15.1_The_Global_Object\\S15.1_A2_T1.js","negative":"."};
|
||||
GlobalScopeTests["S15.1.2.1_A2_T2"]={"assertion":"If the parse fails, throw a SyntaxError exception (but see also clause 16)","description":"Checking if execution of \"eval(\"x = 1; x\\u000A++\")\" fails","id":"S15.1.2.1_A2_T2","path":"15_Native\\15.1_The_Global_Object\\15.1.2_Function_Properties_of_the_Global_Object\\15.1.2.1_eval\\S15.1.2.1_A2_T2.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.3_A12"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.3_A12","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.3_Object.prototype.toLocaleString\\S15.2.4.3_A12.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.3_A13"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.3_A13","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.3_Object.prototype.toLocaleString\\S15.2.4.3_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.4_A12"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.4_A12","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.4_Object.prototype.valueOf\\S15.2.4.4_A12.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.4_A13"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.4_A13","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.4_Object.prototype.valueOf\\S15.2.4.4_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.4_A14"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.4_A14","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.4_Object.prototype.valueOf\\S15.2.4.4_A14.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.5_A12"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.5_A12","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.5_Object.prototype.hasOwnProperty\\S15.2.4.5_A12.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.5_A13"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.5_A13","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.5_Object.prototype.hasOwnProperty\\S15.2.4.5_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.6_A12"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.6_A12","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.6_Object.prototype.isPrototypeOf\\S15.2.4.6_A12.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.6_A13"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.6_A13","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.6_Object.prototype.isPrototypeOf\\S15.2.4.6_A13.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.7_A12"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.7_A12","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.7_Object.prototype.propertyIsEnumerable\\S15.2.4.7_A12.js","negative":"."};
|
||||
GlobalScopeTests["S15.2.4.7_A13"]={"assertion":"Let O be the result of calling ToObject passing the this value as the argument.","description":"","id":"S15.2.4.7_A13","path":"15_Native\\15.2_Object_Objects\\15.2.4_Properties_of_the_Object_Prototype_Object\\15.2.4.7_Object.prototype.propertyIsEnumerable\\S15.2.4.7_A13.js","negative":"."};
|
|
@ -1 +1 @@
|
|||
{"date":"2011-06-23","numTests":10887,"testSuite":["resources/scripts/testcases/07_Lexical_Conventions.json","resources/scripts/testcases/08_Types.json","resources/scripts/testcases/09_Type_Conversion.json","resources/scripts/testcases/10_Execution_Contexts.json","resources/scripts/testcases/11.10_Binary_Bitwise_Operators.json","resources/scripts/testcases/11.11_Binary_Logical_Operators.json","resources/scripts/testcases/11.12_Conditional_Operator.json","resources/scripts/testcases/11.13_Assignment_Operators.json","resources/scripts/testcases/11.14_Comma_Operator.json","resources/scripts/testcases/11.1_Primary_Expressions.json","resources/scripts/testcases/11.2_Left_Hand_Side_Expressions.json","resources/scripts/testcases/11.3_PostfixExpressions.json","resources/scripts/testcases/11.4_Unary_Operators.json","resources/scripts/testcases/11.5_Multiplicative_Operators.json","resources/scripts/testcases/11.6_Additive_Operators.json","resources/scripts/testcases/11.7_Bitwise_Shift_Operators.json","resources/scripts/testcases/11.8_Relational_Operators.json","resources/scripts/testcases/11.9_Equality_Operators.json","resources/scripts/testcases/12_Statement.json","resources/scripts/testcases/13_Function_Definition.json","resources/scripts/testcases/14_Program.json","resources/scripts/testcases/15.10_RegExp_Objects.json","resources/scripts/testcases/15.11_Error_Objects.json","resources/scripts/testcases/15.1_The_Global_Object.json","resources/scripts/testcases/15.2_Object_Objects.json","resources/scripts/testcases/15.3_Function_Objects.json","resources/scripts/testcases/15.4_Array_Objects.json","resources/scripts/testcases/15.5_String_Objects.json","resources/scripts/testcases/15.6_Boolean_Objects.json","resources/scripts/testcases/15.7_Number_Objects.json","resources/scripts/testcases/15.8_The_Math_Object.json","resources/scripts/testcases/15.9_Date_Objects.json","resources/scripts/testcases/chapter07.json","resources/scripts/testcases/chapter08.json","resources/scripts/testcases/chapter10.json","resources/scripts/testcases/chapter11.json","resources/scripts/testcases/chapter12.json","resources/scripts/testcases/chapter13.json","resources/scripts/testcases/chapter14.json","resources/scripts/testcases/15.1.json","resources/scripts/testcases/15.10.json","resources/scripts/testcases/15.11.json","resources/scripts/testcases/15.12.json","resources/scripts/testcases/15.2.3.1.json","resources/scripts/testcases/15.2.3.10.json","resources/scripts/testcases/15.2.3.11.json","resources/scripts/testcases/15.2.3.12.json","resources/scripts/testcases/15.2.3.13.json","resources/scripts/testcases/15.2.3.14.json","resources/scripts/testcases/15.2.3.2.json","resources/scripts/testcases/15.2.3.3.json","resources/scripts/testcases/15.2.3.4.json","resources/scripts/testcases/15.2.3.5.json","resources/scripts/testcases/15.2.3.6.json","resources/scripts/testcases/15.2.3.7.json","resources/scripts/testcases/15.2.3.8.json","resources/scripts/testcases/15.2.3.9.json","resources/scripts/testcases/15.2.4.json","resources/scripts/testcases/15.3.json","resources/scripts/testcases/15.4.3.json","resources/scripts/testcases/15.4.4.10.json","resources/scripts/testcases/15.4.4.12.json","resources/scripts/testcases/15.4.4.14.json","resources/scripts/testcases/15.4.4.15.json","resources/scripts/testcases/15.4.4.16.json","resources/scripts/testcases/15.4.4.17.json","resources/scripts/testcases/15.4.4.18.json","resources/scripts/testcases/15.4.4.19.json","resources/scripts/testcases/15.4.4.20.json","resources/scripts/testcases/15.4.4.21.json","resources/scripts/testcases/15.4.4.22.json","resources/scripts/testcases/15.4.4.4.json","resources/scripts/testcases/15.4.5.json","resources/scripts/testcases/15.5.json","resources/scripts/testcases/15.7.json","resources/scripts/testcases/15.9.json"],"version":"0.7.4"}
|
||||
{"date":"2011-06-29","numTests":10935,"testSuite":["resources/scripts/testcases/07_Lexical_Conventions.json","resources/scripts/testcases/08_Types.json","resources/scripts/testcases/09_Type_Conversion.json","resources/scripts/testcases/10_Execution_Contexts.json","resources/scripts/testcases/11.10_Binary_Bitwise_Operators.json","resources/scripts/testcases/11.11_Binary_Logical_Operators.json","resources/scripts/testcases/11.12_Conditional_Operator.json","resources/scripts/testcases/11.13_Assignment_Operators.json","resources/scripts/testcases/11.14_Comma_Operator.json","resources/scripts/testcases/11.1_Primary_Expressions.json","resources/scripts/testcases/11.2_Left_Hand_Side_Expressions.json","resources/scripts/testcases/11.3_PostfixExpressions.json","resources/scripts/testcases/11.4_Unary_Operators.json","resources/scripts/testcases/11.5_Multiplicative_Operators.json","resources/scripts/testcases/11.6_Additive_Operators.json","resources/scripts/testcases/11.7_Bitwise_Shift_Operators.json","resources/scripts/testcases/11.8_Relational_Operators.json","resources/scripts/testcases/11.9_Equality_Operators.json","resources/scripts/testcases/12_Statement.json","resources/scripts/testcases/13_Function_Definition.json","resources/scripts/testcases/14_Program.json","resources/scripts/testcases/15.10_RegExp_Objects.json","resources/scripts/testcases/15.11_Error_Objects.json","resources/scripts/testcases/15.12_The_JSON_Object.json","resources/scripts/testcases/15.1_The_Global_Object.json","resources/scripts/testcases/15.2_Object_Objects.json","resources/scripts/testcases/15.3_Function_Objects.json","resources/scripts/testcases/15.4_Array_Objects.json","resources/scripts/testcases/15.5_String_Objects.json","resources/scripts/testcases/15.6_Boolean_Objects.json","resources/scripts/testcases/15.7_Number_Objects.json","resources/scripts/testcases/15.8_The_Math_Object.json","resources/scripts/testcases/15.9_Date_Objects.json","resources/scripts/testcases/chapter07.json","resources/scripts/testcases/chapter08.json","resources/scripts/testcases/chapter10.json","resources/scripts/testcases/chapter11.json","resources/scripts/testcases/chapter12.json","resources/scripts/testcases/chapter13.json","resources/scripts/testcases/chapter14.json","resources/scripts/testcases/15.1.json","resources/scripts/testcases/15.10.json","resources/scripts/testcases/15.11.json","resources/scripts/testcases/15.12.json","resources/scripts/testcases/15.2.3.1.json","resources/scripts/testcases/15.2.3.10.json","resources/scripts/testcases/15.2.3.11.json","resources/scripts/testcases/15.2.3.12.json","resources/scripts/testcases/15.2.3.13.json","resources/scripts/testcases/15.2.3.14.json","resources/scripts/testcases/15.2.3.2.json","resources/scripts/testcases/15.2.3.3.json","resources/scripts/testcases/15.2.3.4.json","resources/scripts/testcases/15.2.3.5.json","resources/scripts/testcases/15.2.3.6.json","resources/scripts/testcases/15.2.3.7.json","resources/scripts/testcases/15.2.3.8.json","resources/scripts/testcases/15.2.3.9.json","resources/scripts/testcases/15.2.4.json","resources/scripts/testcases/15.3.json","resources/scripts/testcases/15.4.3.json","resources/scripts/testcases/15.4.4.10.json","resources/scripts/testcases/15.4.4.12.json","resources/scripts/testcases/15.4.4.14.json","resources/scripts/testcases/15.4.4.15.json","resources/scripts/testcases/15.4.4.16.json","resources/scripts/testcases/15.4.4.17.json","resources/scripts/testcases/15.4.4.18.json","resources/scripts/testcases/15.4.4.19.json","resources/scripts/testcases/15.4.4.20.json","resources/scripts/testcases/15.4.4.21.json","resources/scripts/testcases/15.4.4.22.json","resources/scripts/testcases/15.4.4.4.json","resources/scripts/testcases/15.4.5.json","resources/scripts/testcases/15.5.json","resources/scripts/testcases/15.7.json","resources/scripts/testcases/15.9.json"],"version":"0.7.5"}
|
Loading…
Reference in New Issue