def METHOD_NAME(manager):
    def widget_text():
        return manager.c.bar["top"].info()["widgets"][0]["text"]
    window_one = manager.test_window("one")
    assert widget_text() == "<b>one</b>"
    window_two = manager.test_window("two")
    assert widget_text() in ["<b>two</b> | one", "one | <b>two</b>"]
    manager.c.layout.next()
    assert widget_text() in ["<b>one</b> | two", "two | <b>one</b>"]
    manager.kill_window(window_one)
    assert widget_text() == "<b>two</b>"
    manager.kill_window(window_two)
    assert widget_text() == ""