mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			539 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			539 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
import AK
 | 
						|
import Testing
 | 
						|
import Web
 | 
						|
 | 
						|
@Suite
 | 
						|
struct TestLibWebSwiftBindings {
 | 
						|
 | 
						|
    @Test func enumsAreBound() {
 | 
						|
        #expect(Web.DOM.NodeType.ELEMENT_NODE.rawValue == 1)
 | 
						|
 | 
						|
        #expect(Web.Bindings.NavigationType.Push.rawValue == 0)
 | 
						|
 | 
						|
        let end = Web.Bindings.idl_enum_to_string(Web.Bindings.ScrollLogicalPosition.End)
 | 
						|
        let end_string = Swift.String(akString: end)!
 | 
						|
 | 
						|
        #expect(end_string == "end")
 | 
						|
    }
 | 
						|
}
 |