mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	Bug 1129: Move Date.prototype.toGMTString into annexB
This commit is contained in:
		
							parent
							
								
									fb850ad1e0
								
							
						
					
					
						commit
						23f10fea63
					
				@ -4,7 +4,7 @@
 | 
			
		||||
/// "Use Terms").   Any redistribution of this code must retain the above 
 | 
			
		||||
/// copyright and this notice and otherwise comply with the Use Terms.
 | 
			
		||||
/**
 | 
			
		||||
 * @path ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js
 | 
			
		||||
 * @path annexB/B.2.6.js
 | 
			
		||||
 * @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toGMTString)
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										16
									
								
								test/suite/annexB/B.2.6.propertyCheck.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								test/suite/annexB/B.2.6.propertyCheck.js
									
									
									
									
									
										Normal file
									
								
							@ -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.
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Check type of various properties
 | 
			
		||||
 *
 | 
			
		||||
 * @path annexB/B.2.6.propertyCheck.js
 | 
			
		||||
 * @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"] ));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -89,9 +89,6 @@ if (typeof Date.prototype.toLocaleString !== "function")  $ERROR('#81: typeof Da
 | 
			
		||||
if (typeof Date.prototype['toLocaleString'] !== "function")  $ERROR('#82: typeof Date.prototype["toLocaleString"] === "function". Actual: ' + (typeof Date.prototype["toLocaleString"] ));
 | 
			
		||||
if (typeof Date.prototype.toUTCString !== "function")  $ERROR('#83: typeof Date.prototype.toUTCString === "function". Actual: ' + (typeof Date.prototype.toUTCString ));
 | 
			
		||||
if (typeof Date.prototype['toUTCString'] !== "function")  $ERROR('#84: typeof Date.prototype["toUTCString"] === "function". Actual: ' + (typeof Date.prototype["toUTCString"] ));
 | 
			
		||||
if (typeof Date.prototype.toGMTString !== "function")  $ERROR('#85: typeof Date.prototype.toGMTString === "function". Actual: ' + (typeof Date.prototype.toGMTString ));
 | 
			
		||||
if (typeof Date.prototype['toGMTString'] !== "function")  $ERROR('#86: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] ));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user