mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
4 changed files with 8 additions and 8 deletions
|
|
@ -1,9 +1,9 @@
|
|||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_"] }] */
|
||||
|
||||
const GLib = imports.gi.GLib;
|
||||
const MetaTest = imports.gi.MetaTest;
|
||||
const Shell = imports.gi.Shell;
|
||||
import GLib from 'gi://GLib';
|
||||
import MetaTest from 'gi://MetaTest';
|
||||
import Shell from 'gi://Shell';
|
||||
|
||||
const Main = imports.ui.main;
|
||||
const Scripting = imports.ui.scripting;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue