summaryrefslogtreecommitdiff
path: root/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js')
-rw-r--r--test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js b/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js
new file mode 100644
index 000000000..b8221b6b4
--- /dev/null
+++ b/test/built-ins/Date/UTC/S15.9.4.3_A3_T1.js
@@ -0,0 +1,16 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: >
+ The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum }
+ attributes
+es5id: 15.9.4.3_A3_T1
+description: Checking ReadOnly attribute
+---*/
+
+x = Date.UTC.length;
+Date.UTC.length = 1;
+if (Date.UTC.length !== x) {
+ $ERROR('#1: The Date.UTC.length has the attribute ReadOnly');
+}