2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: Date constructor has length property whose value is 7
|
2017-07-27 23:24:39 +02:00
|
|
|
esid: sec-date-constructor
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking Date.length property
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1
|
2018-02-15 22:40:26 +01:00
|
|
|
if (!Date.hasOwnProperty("length")) {
|
2011-09-07 08:35:18 +02:00
|
|
|
$ERROR('#1: Date constructor has length property');
|
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#2
|
|
|
|
if (Date.length !== 7) {
|
|
|
|
$ERROR('#2: Date constructor length property value should be 7');
|
|
|
|
}
|