2013-06-06 13:48:30 +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: Check type of various properties
|
2015-02-10 22:01:39 +01:00
|
|
|
es5id: B.2.6
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking properties of the Date object (toGMTString)
|
|
|
|
---*/
|
2013-06-06 13:48:30 +02:00
|
|
|
|
|
|
|
if (typeof Date.prototype.toGMTString !== "function") $ERROR('#1: typeof Date.prototype.toGMTString === "function". Actual: ' + (typeof Date.prototype.toGMTString ));
|
|
|
|
if (typeof Date.prototype['toGMTString'] !== "function") $ERROR('#2: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] ));
|