aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T3.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_T3.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_T3.js43
1 files changed, 0 insertions, 43 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_T3.js b/test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T3.js
deleted file mode 100644
index a029fa021..000000000
--- a/test/suite/sputnik_converted/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T3.js
+++ /dev/null
@@ -1,43 +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_T3;
-* @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 "arg1, arg2, arg3", "return arg1+arg2+arg3;";
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.3.2.1_A2_T3",
-
-path: "TestCases/15_Native/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A2_T3.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 \"arg1, arg2, arg3\", \"return arg1+arg2+arg3;\"",
-
-test: function testcase() {
- //CHECK#1
-try {
- var f = Function("arg1, arg2, arg3", "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(1,1,"ABBA") !== "2ABBA") {
- $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
-}
-
- }
-});
-