summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.1_The_Object_Constructor_Called_as_a_Function/S15.2.1.1_A3_T3.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.1_The_Object_Constructor_Called_as_a_Function/S15.2.1.1_A3_T3.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.1_The_Object_Constructor_Called_as_a_Function/S15.2.1.1_A3_T3.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.1_The_Object_Constructor_Called_as_a_Function/S15.2.1.1_A3_T3.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.1_The_Object_Constructor_Called_as_a_Function/S15.2.1.1_A3_T3.js
new file mode 100644
index 000000000..44906f008
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.1_The_Object_Constructor_Called_as_a_Function/S15.2.1.1_A3_T3.js
@@ -0,0 +1,26 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S15.2.1.1_A3_T3;
+* @section: 15.2.1.1;
+* @assertion: Since calling Object as a function is identical to calling a function, list of arguments bracketing is allowed;
+* @description: Creating an object with "Object((null,2,3),1,2)";
+*/
+
+var obj = Object((null,2,3),1,2);
+
+//CHECK#1
+if (obj.constructor !== Number) {
+ $ERROR('#1: Since Object as a function calling is the same as function calling list of arguments can appears in braces;');
+}
+
+//CHECK#2
+if (typeof obj !== "object") {
+ $ERROR('#2: Since Object as a function calling is the same as function calling list of arguments can appears in braces;');
+}
+
+//CHECK#3
+if ((obj != 3)||(obj === 3)) {
+ $ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;');
+}