tests.rs raw

use super::*;

/// The whole point of these: what they announce. A `container` full of tabs
/// is announced as a generic group, which tells a screen-reader user nothing
/// about what the arrow keys will do.
#[test]
fn they_announce_what_they_hold() {
    assert_eq!(TabList::new().role(), accesskit::Role::TabList);
    assert_eq!(ListBox::new().role(), accesskit::Role::ListBox);
    assert_eq!(Container::new().role(), accesskit::Role::GenericContainer);
}

/// And they are separate theme targets, so a strip can be styled without
/// touching every other container.
#[test]
fn they_are_their_own_theme_targets() {
    assert_eq!(TabList::new().type_name(), "tab-list");
    assert_eq!(ListBox::new().type_name(), "list");
}