[][src]Macro gtk_test::assert_title

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

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

Example:

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

use gtk::{GtkWindowExt, Window, WindowType};

gtk::init().expect("GTK init failed");
let window = Window::new(WindowType::Toplevel);
window.set_title("Fromage ?");
assert_title!(window, "Fromage ?");