mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-24 22:32:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			586 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			586 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| describe("createComment", () => {
 | |
|     loadLocalPage("/res/html/misc/blank.html");
 | |
| 
 | |
|     afterInitialPageLoad(page => {
 | |
|         test("Basic functionality", () => {
 | |
|             const comment = page.document.createComment("Create Comment Test");
 | |
| 
 | |
|             // FIXME: Add this in once Comment's constructor is implemented.
 | |
|             //expect(comment).toBeInstanceOf(Comment);
 | |
|             expect(comment.nodeName).toBe("#comment");
 | |
|             expect(comment.data).toBe("Create Comment Test");
 | |
|             expect(comment.length).toBe(19);
 | |
|         });
 | |
|     });
 | |
|     waitForPageToLoad();
 | |
| });
 | 
