mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|   | describe("Issue #3382", () => { | ||
|  |     test("Creating an array with simple storage (<= 200 initial elements)", () => { | ||
|  |         var a = Array(200); | ||
|  |         expect(a).toHaveLength(200); | ||
|  |         expect(a.push("foo")).toBe(201); | ||
|  |         expect(a).toHaveLength(201); | ||
|  |     }); | ||
|  | 
 | ||
|  |     test("Creating an array with generic storage (> 200 initial elements)", () => { | ||
|  |         var a = Array(201); | ||
|  |         expect(a).toHaveLength(201); | ||
|  |         expect(a.push("foo")).toBe(202); | ||
|  |         expect(a).toHaveLength(202); | ||
|  |     }); | ||
|  | }); |