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

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

Example:

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

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

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