Macro gtk_test::assert_text [−][src]
macro_rules! assert_text { ($widget:expr, $string:expr) => { ... }; }
Expand description
To check if the widget’s text matches the given string.
Example:
extern crate gtk; #[macro_use] extern crate gtk_test; use gtk::{Label, prelude::LabelExt}; gtk::init().expect("GTK init failed"); let label = Label::new(Some("I'm a label!")); assert_text!(label, "I'm a label!");