File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ struct BuiltinRegistry {
20
20
SecureField < R > ( element: element, context: context)
21
21
case " text " :
22
22
Text ( context: context)
23
- case " h-stack " :
23
+ case " h-stack " , " hstack " :
24
24
HStack < R > ( element: element, context: context)
25
- case " v-stack " :
25
+ case " v-stack " , " vstack " :
26
26
VStack < R > ( element: element, context: context)
27
- case " z-stack " :
27
+ case " z-stack " , " zstack " :
28
28
ZStack < R > ( element: element, context: context)
29
29
case " button " :
30
30
Button < R > ( element: element, context: context, action: nil )
Original file line number Diff line number Diff line change @@ -12,18 +12,18 @@ import SwiftUI
12
12
@MainActor
13
13
final class TextFieldTests : XCTestCase {
14
14
func testSimple( ) throws {
15
- try assertMatch ( #"<textfield placeholder="Type here" />"# ) {
15
+ try assertMatch ( #"<text-field placeholder="Type here" />"# ) {
16
16
TextField ( " Type here " , text: . constant( " " ) )
17
17
}
18
- try assertMatch ( #"<securefield placeholder="Password" />"# ) {
18
+ try assertMatch ( #"<secure-field placeholder="Password" />"# ) {
19
19
SecureField ( " Password " , text: . constant( " " ) )
20
20
}
21
21
}
22
22
func testPrompt( ) throws {
23
- try assertMatch ( #"<textfield placeholder="Placeholder" prompt="Prompt" />"# ) {
23
+ try assertMatch ( #"<text-field placeholder="Placeholder" prompt="Prompt" />"# ) {
24
24
TextField ( " Placeholder " , text: . constant( " " ) , prompt: Text ( " Prompt " ) )
25
25
}
26
- try assertMatch ( #"<securefield placeholder="Placeholder" prompt="Prompt" />"# ) {
26
+ try assertMatch ( #"<secure-field placeholder="Placeholder" prompt="Prompt" />"# ) {
27
27
SecureField ( " Placeholder " , text: . constant( " " ) , prompt: Text ( " Prompt " ) )
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments