Skip to content

Commit d3d7f84

Browse files
committed
Test tint emission
1 parent 2f0477f commit d3d7f84

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

AndroidSwiftUICore/Tests/AndroidSwiftUICoreTests/EvaluatorTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ struct ModifierTests {
227227
let node = ViewHost(Text("x").shadow(radius: 6)).evaluate()
228228
#expect(node.modifiers.first { $0.kind == "shadow" }?.args["radius"] == .double(6))
229229
}
230+
231+
@Test("tint emits its color")
232+
func tint() {
233+
let node = ViewHost(Text("x").tint(.green)).evaluate()
234+
#expect(node.modifiers.first { $0.kind == "tint" }?.args["color"] == Color.green.propValue)
235+
}
230236
}
231237

232238
// MARK: - Graphics

0 commit comments

Comments
 (0)