mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
Tests: Run swift-format on TestLibWebSwiftBindings
This commit is contained in:
parent
3393a74771
commit
951f4f0984
Notes:
github-actions[bot]
2024-10-01 19:34:14 +00:00
Author: https://github.com/ADKaster
Commit: 951f4f0984
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1221
Reviewed-by: https://github.com/trflynn89
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue