summaryrefslogtreecommitdiff
path: root/test/endless/testTopbarNavButton.js
blob: 50849d2303af856f5f4e23f5261d45386c7e833d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const Endless = imports.gi.Endless;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;

Gtk.init(null);

describe('TopbarNavButton', function () {
    it('works correctly with no_show_all', function () {
        let button = new Endless.TopbarNavButton({
            no_show_all: true,
        });
        button.show();
        expect(button.visible).toBe(true);
        expect(button.back_button.visible).toBe(true);
        expect(button.forward_button.visible).toBe(true);
    });
});