From 02a7b0dcfd4828b347606ad098d877692839e859 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 15 Feb 2017 00:46:52 +0000 Subject: [PATCH] tests: require given version of Gtk --- tests/interactive/gapplication.js | 3 +++ tests/interactive/test-title.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/interactive/gapplication.js b/tests/interactive/gapplication.js index 91b544d9e..60a3630b9 100755 --- a/tests/interactive/gapplication.js +++ b/tests/interactive/gapplication.js @@ -1,6 +1,9 @@ #!/usr/bin/env gjs // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- +imports.gi.versions.Gdk = '3.0'; +imports.gi.versions.Gtk = '3.0'; + const Gdk = imports.gi.Gdk; const Gio = imports.gi.Gio; const GLib = imports.gi.GLib; diff --git a/tests/interactive/test-title.js b/tests/interactive/test-title.js index 54bbc91e9..9dea45f8e 100755 --- a/tests/interactive/test-title.js +++ b/tests/interactive/test-title.js @@ -1,5 +1,7 @@ #!/usr/bin/env gjs +imports.gi.versions.Gtk = '3.0'; + const Gtk = imports.gi.Gtk; const Mainloop = imports.mainloop;