diff options
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T2.js')
1 files changed, 18 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T2.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T2.js new file mode 100644 index 000000000..1c9fc1d6b --- /dev/null +++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T2.js @@ -0,0 +1,18 @@ +// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S15.9.5.28_A1_T2;
+ * @section: 15.9.5.28;
+ * @assertion: The Date.prototype property "setMilliseconds" has { DontEnum } attributes;
+ * @description: Checking absence of DontDelete attribute;
+ */
+
+if (delete Date.prototype.setMilliseconds === false) {
+ $ERROR('#1: The Date.prototype.setMilliseconds property has not the attributes DontDelete');
+}
+
+if (Date.prototype.hasOwnProperty('setMilliseconds')) {
+ $FAIL('#2: The Date.prototype.setMilliseconds property has not the attributes DontDelete');
+}
+
|