summaryrefslogtreecommitdiff
path: root/test/endless/testCustomContainer.js
blob: 09b23bb88f0d8c71c123fe55df74238f92e0d505 (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
27
28
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);
    }
});

Gtk.init(null);

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();
    });
});