aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T4.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T4.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T4.js b/test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T4.js
deleted file mode 100644
index f23c16065..000000000
--- a/test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T4.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S15.3.2.1_A2_T4;
-* @section: 15.3.2.1;
-* @assertion: It is permissible but not necessary to have one argument for each formal parameter to be specified;
-* @description: Values of the function constructor arguments are "return"-s of various results;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.3.2.1_A2_T4",
-
-path: "TestCases/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T4.js",
-
-assertion: "It is permissible but not necessary to have one argument for each formal parameter to be specified",
-
-description: "Values of the function constructor arguments are \"return\"-s of various results",
-
-test: function testcase() {
- var i=0;
-
-var p={toString:function(){return "arg"+(++i);}};
-
-//CHECK#1
-try {
- var f = Function(p, p, p, "return arg1+arg2+arg3;");
-} catch (e) {
- $FAIL('#1: test failed');
-}
-
-//CHECK#2
-if (!(f instanceof Function)){
- $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
-}
-
-//CHECK#3
-if (f(4,"2","QUESTION") !== "42QUESTION") {
- $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
-}
-
- }
-});
-