mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Tests: Run swift-format on TestLibWebSwiftBindings
This commit is contained in:
committed by
Andrew Kaster
parent
3393a74771
commit
951f4f0984
@@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import AK
|
import AK
|
||||||
import Web
|
|
||||||
import Testing
|
import Testing
|
||||||
|
import Web
|
||||||
|
|
||||||
@Suite
|
@Suite
|
||||||
struct TestLibWebSwiftBindings {
|
struct TestLibWebSwiftBindings {
|
||||||
@@ -17,7 +17,7 @@ struct TestLibWebSwiftBindings {
|
|||||||
#expect(Web.Bindings.NavigationType.Push.rawValue == 0)
|
#expect(Web.Bindings.NavigationType.Push.rawValue == 0)
|
||||||
|
|
||||||
let end = Web.Bindings.idl_enum_to_string(Web.Bindings.ScrollLogicalPosition.End)
|
let end = Web.Bindings.idl_enum_to_string(Web.Bindings.ScrollLogicalPosition.End)
|
||||||
let end_view = end.__bytes_as_string_viewUnsafe().bytes();
|
let end_view = end.__bytes_as_string_viewUnsafe().bytes()
|
||||||
let end_string = Swift.String(bytes: end_view, encoding: .utf8)!
|
let end_string = Swift.String(bytes: end_view, encoding: .utf8)!
|
||||||
|
|
||||||
#expect(end_string == "end")
|
#expect(end_string == "end")
|
||||||
|
|||||||
Reference in New Issue
Block a user