summaryrefslogtreecommitdiff
path: root/test/endless/testCustomContainer.js
blob: 7038beb71d43744f47622e3411c8caa10b078d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const Endless = imports.gi.Endless;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;

const TestContainer = new Lang.Class({
    Name: 'TestContainer',
    Extends: Endless.CustomContainer,

    _init: function (params) {
        this.parent(params);
    },

    vfunc_size_allocate: function (alloc) {
        this.parent(alloc);
    }
});

describe("CustomContainer", function () {
    it("Instantiates a CustomContainer subclass to make sure no exceptions/segfaults", function () {
        let createContainer = function () {
            let container = new TestContainer();
        };

        expect(createContainer).not.toThrow();
    });
});