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
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-02-04 20:37:40 +01:00
|
|
|
The Date.parse property "length" has { ReadOnly, ! DontDelete, DontEnum }
|
2014-07-22 01:09:02 +02:00
|
|
|
attributes
|
2017-07-27 23:24:39 +02:00
|
|
|
esid: sec-date.parse
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking DontDelete attribute
|
|
|
|
---*/
|
2021-08-11 20:13:41 +02:00
|
|
|
assert.sameValue(delete Date.parse.length, true, 'The value of `delete Date.parse.length` is expected to be true');
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2021-08-11 20:13:41 +02:00
|
|
|
assert(
|
|
|
|
!Date.parse.hasOwnProperty('length'),
|
|
|
|
'The value of !Date.parse.hasOwnProperty(\'length\') is expected to be true'
|
|
|
|
);
|
2021-08-11 20:35:53 +02:00
|
|
|
|
|
|
|
// TODO: Convert to verifyProperty() format.
|