[][src]Macro gtk_test::assert_text

macro_rules! assert_text {
    ($widget:expr, $string:expr) => { ... };
}

To check if the widget's text matches the given string.

Example:

extern crate gtk;
#[macro_use]
extern crate gtk_test;

use gtk::{Label, LabelExt};

gtk::init().expect("GTK init failed");
let label = Label::new("I'm a label!");
assert_text!(label, "I'm a label!");