mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	Tests/LibWeb: Add standard built-in objects test for structuredClone()
This commit is contained in:
		
							parent
							
								
									77e339022b
								
							
						
					
					
						commit
						66c0e78c7d
					
				
					 2 changed files with 17 additions and 0 deletions
				
			
		|  | @ -0,0 +1,6 @@ | ||||||
|  | true | ||||||
|  | false | ||||||
|  | 123 | ||||||
|  | 123.456 | ||||||
|  | This is a String object | ||||||
|  | 1692748800000 | ||||||
|  | @ -0,0 +1,11 @@ | ||||||
|  | <script src="../include.js"></script> | ||||||
|  | <script> | ||||||
|  |     test(() => { | ||||||
|  |         println(structuredClone(new Boolean(true))); | ||||||
|  |         println(structuredClone(new Boolean(false))); | ||||||
|  |         println(structuredClone(new Number(123))); | ||||||
|  |         println(structuredClone(new Number(123.456))); | ||||||
|  |         println(structuredClone(new String("This is a String object"))); | ||||||
|  |         println(structuredClone(Date.UTC(2023, 7, 23))); | ||||||
|  |     }); | ||||||
|  | </script> | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kenneth Myhra
						Kenneth Myhra