tests/shell: Import introspected libraries as modules
Since commit 5e93791708
tests scripts are loaded as modules,
so we can (and should) use "proper" imports.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2835>
This commit is contained in:
parent
04aaa4b67b
commit
0929b2a307
@ -1,7 +1,7 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_"] }] */
|
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_"] }] */
|
||||||
|
|
||||||
const St = imports.gi.St;
|
import St from 'gi://St';
|
||||||
|
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const MessageTray = imports.ui.messageTray;
|
const MessageTray = imports.ui.messageTray;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^malloc", "^glx", "^clutter"] }] */
|
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^malloc", "^glx", "^clutter"] }] */
|
||||||
|
|
||||||
const Clutter = imports.gi.Clutter;
|
import Clutter from 'gi://Clutter';
|
||||||
|
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const Scripting = imports.ui.scripting;
|
const Scripting = imports.ui.scripting;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_"] }] */
|
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_"] }] */
|
||||||
|
|
||||||
const GLib = imports.gi.GLib;
|
import GLib from 'gi://GLib';
|
||||||
const MetaTest = imports.gi.MetaTest;
|
import MetaTest from 'gi://MetaTest';
|
||||||
const Shell = imports.gi.Shell;
|
import Shell from 'gi://Shell';
|
||||||
|
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const Scripting = imports.ui.scripting;
|
const Scripting = imports.ui.scripting;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^clutter"] }] */
|
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^clutter"] }] */
|
||||||
const Clutter = imports.gi.Clutter;
|
import Clutter from 'gi://Clutter';
|
||||||
const Gio = imports.gi.Gio;
|
import Gio from 'gi://Gio';
|
||||||
const Shell = imports.gi.Shell;
|
import Shell from 'gi://Shell';
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const Scripting = imports.ui.scripting;
|
const Scripting = imports.ui.scripting;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user