diff --git a/test/annexB/built-ins/Date/prototype/toGMTString/B.2.6.propertyCheck.js b/test/annexB/built-ins/Date/prototype/toGMTString/B.2.6.propertyCheck.js deleted file mode 100644 index d09596d9e4..0000000000 --- a/test/annexB/built-ins/Date/prototype/toGMTString/B.2.6.propertyCheck.js +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Check type of various properties -es5id: B.2.6 -description: Checking properties of the Date object (toGMTString) ----*/ - -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"] )); diff --git a/test/annexB/built-ins/Date/prototype/toGMTString/length.js b/test/annexB/built-ins/Date/prototype/toGMTString/length.js deleted file mode 100755 index 216dd9e718..0000000000 --- a/test/annexB/built-ins/Date/prototype/toGMTString/length.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: B.2.4.3 -description: > - Date.prototype.toGMTString.length is 0. -info: > - Date.prototype.toGMTString ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name” - are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js] ----*/ - -assert.sameValue(Date.prototype.toGMTString.length, 0); - -verifyNotEnumerable(Date.prototype.toGMTString, "length"); -verifyNotWritable(Date.prototype.toGMTString, "length"); -verifyConfigurable(Date.prototype.toGMTString, "length"); diff --git a/test/annexB/built-ins/Date/prototype/toGMTString/name.js b/test/annexB/built-ins/Date/prototype/toGMTString/name.js deleted file mode 100755 index 56f10aa86c..0000000000 --- a/test/annexB/built-ins/Date/prototype/toGMTString/name.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: B.2.4.3 -description: > - Date.prototype.toGMTString.name is "toUTCString". -info: > - Date.prototype.toGMTString ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js] ----*/ - -assert.sameValue(Date.prototype.toGMTString.name, "toUTCString"); - -verifyNotEnumerable(Date.prototype.toGMTString, "name"); -verifyNotWritable(Date.prototype.toGMTString, "name"); -verifyConfigurable(Date.prototype.toGMTString, "name"); diff --git a/test/annexB/built-ins/Date/prototype/toGMTString/B.2.6.js b/test/annexB/built-ins/Date/prototype/toGMTString/prop-desc.js similarity index 100% rename from test/annexB/built-ins/Date/prototype/toGMTString/B.2.6.js rename to test/annexB/built-ins/Date/prototype/toGMTString/prop-desc.js diff --git a/test/annexB/built-ins/Date/prototype/toGMTString/value.js b/test/annexB/built-ins/Date/prototype/toGMTString/value.js new file mode 100644 index 0000000000..516812feab --- /dev/null +++ b/test/annexB/built-ins/Date/prototype/toGMTString/value.js @@ -0,0 +1,14 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-date.prototype.togmtstring +es6id: B.2.4.3 +es5id: B.2.6 +description: Value of `Date.prototype.toGMTString` +info: > + The function object that is the initial value of Date.prototype.toGMTString + is the same function object that is the initial value of + Date.prototype.toUTCString. +---*/ + +assert.sameValue(Date.prototype.toGMTString, Date.prototype.toUTCString);