summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/S15.4.4_A1.1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/S15.4.4_A1.1_T1.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/S15.4.4_A1.1_T1.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/S15.4.4_A1.1_T1.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/S15.4.4_A1.1_T1.js
new file mode 100644
index 000000000..c755b786d
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/S15.4.4_A1.1_T1.js
@@ -0,0 +1,22 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S15.4.4_A1.1_T1;
+ * @section: 15.4.4, 15.2.4.5;
+ * @assertion: The value of the internal [[Prototype]] property of
+ * the Array prototype object is the Object prototype object;
+ * @description: Create new property of Function.prototype. When Array.prototype object has this property;
+*/
+
+Object.prototype.myproperty = 1;
+
+//CHECK#1
+if (Array.prototype.myproperty !== 1) {
+ $ERROR('#1: Object.prototype.myproperty = 1; Array.prototype.myproperty === 1. Actual: ' + (Array.prototype.myproperty));
+}
+
+//CHECK#2
+if (Array.prototype.hasOwnProperty('myproperty') !== false) {
+ $ERROR('#2: Object.prototype.myproperty = 1; Array.prototype.hasOwnProperty(\'myproperty\') === false. Actual: ' + (Array.prototype.hasOwnProperty('myproperty')));
+}