mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			602 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			602 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
describe("Comments", () => {
 | 
						|
    loadLocalPage("Comment.html");
 | 
						|
    afterInitialPageLoad(page => {
 | 
						|
        test("Basic functionality", () => {
 | 
						|
            const comment = page.document.body.firstChild.nextSibling;
 | 
						|
            expect(comment).not.toBeNull();
 | 
						|
 | 
						|
            // FIXME: Add this in once Comment's constructor is implemented.
 | 
						|
            //expect(comment).toBeInstanceOf(Comment);
 | 
						|
 | 
						|
            expect(comment.nodeName).toBe("#comment");
 | 
						|
            expect(comment.data).toBe("This is a comment");
 | 
						|
            expect(comment).toHaveLength(17);
 | 
						|
        });
 | 
						|
    });
 | 
						|
    waitForPageToLoad();
 | 
						|
});
 |