script::test::textinput

Trait ClipboardProvider

Source
pub trait ClipboardProvider {
    // Required methods
    fn get_text(&mut self) -> Result<String, String>;
    fn set_text(&mut self, _: String);
}
Expand description

A trait which abstracts access to the embedder’s clipboard in order to allow unit testing clipboard-dependent parts of script.

Required Methods§

Source

fn get_text(&mut self) -> Result<String, String>

Get the text content of the clipboard.

Source

fn set_text(&mut self, _: String)

Set the text content of the clipboard.

Implementors§