mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
tests: Run each test in a function
As the global object of a context is rooted, if we want the GC to act on these objects we need to take them out of the globals. https://bugzilla.gnome.org/show_bug.cgi?id=678737
This commit is contained in:
parent
0d82ce5210
commit
c7196a519f
16 changed files with 794 additions and 769 deletions
|
|
@ -13,3 +13,11 @@ function init(stage) {
|
|||
let theme = new St.Theme({ application_stylesheet: stylesheetPath });
|
||||
context.set_theme(theme);
|
||||
}
|
||||
|
||||
function main(stage) {
|
||||
stage.show();
|
||||
stage.connect('destroy', function() {
|
||||
Clutter.main_quit();
|
||||
});
|
||||
Clutter.main();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue