class
Tessell::Kit::TestDriver
- Tessell::Kit::TestDriver
- Reference
- Object
Defined in:
tessell/kit/test_driver.crConstructors
-
.new(root : Root, host : Platform::Host | Nil = nil, backend : Symbol = :raw)
后端::fake 走 FakeHost.inject → pump_frame → root.handle 完整管道; :raw 直投 root.handle(真实宿主用——合成输入不经 OS)。
Instance Method Summary
- #assert_text(name : String, expected : String) : Nil
- #collect(sink : Array(ComponentRef)) : Nil
- #find(name : String, role : Tessell::A11y::Role | Nil = nil) : Component
- #focus(name : String) : Nil
- #key(code : Tessell::Input::KeyCode, modifiers : Tessell::Input::Modifiers = Tessell::Input::Modifiers.none) : Nil
- #press(name : String, role : Tessell::A11y::Role = Tessell::A11y::Role::Button) : Nil
- #root : Root
- #scroll(x : Float32, y : Float32, dx : Float32, dy : Float32) : Nil
- #steps : Array(String)
- #steps_log : String
- #type(text : String) : Nil
Constructor Detail
后端::fake 走 FakeHost.inject → pump_frame → root.handle 完整管道; :raw 直投 root.handle(真实宿主用——合成输入不经 OS)。
Instance Method Detail
def key(code : Tessell::Input::KeyCode, modifiers : Tessell::Input::Modifiers = Tessell::Input::Modifiers.none) : Nil
#