summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/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_A10.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/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_A10.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/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_A10.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/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_A10.js b/external/contributions/Google/sputnik_conformance_modified/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_A10.js
new file mode 100644
index 000000000..ef25b4e11
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/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_A10.js
@@ -0,0 +1,24 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S15.2.4.6_A10;
+* @section: 15.2.4.6;
+* @assertion: The Object.prototype.isPrototypeOf.length property has the attribute ReadOnly;
+* @description: Checking if varying the Object.prototype.isPrototypeOf.length property fails;
+* @noStrict
+*/
+
+//CHECK#1
+if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) {
+ $FAIL('#1: the Object.prototype.isPrototypeOf has length property');
+}
+
+var obj = Object.prototype.isPrototypeOf.length;
+
+Object.prototype.isPrototypeOf.length = function(){return "shifted";};
+
+//CHECK#2
+if (Object.prototype.isPrototypeOf.length !== obj) {
+ $ERROR('#2: the Object.prototype.isPrototypeOf length property has the attributes ReadOnly');
+}