tests/perf: Add test for shutdown with open window
This would without the applied fix trigger https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6536. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>
This commit is contained in:
parent
2325022d2f
commit
d272b16e50
@ -36,6 +36,7 @@
|
|||||||
<file>misc/weather.js</file>
|
<file>misc/weather.js</file>
|
||||||
|
|
||||||
<file>perf/basic.js</file>
|
<file>perf/basic.js</file>
|
||||||
|
<file>perf/closeWithActiveWindows.js</file>
|
||||||
<file>perf/core.js</file>
|
<file>perf/core.js</file>
|
||||||
<file>perf/headlessStart.js</file>
|
<file>perf/headlessStart.js</file>
|
||||||
<file>perf/hwtest.js</file>
|
<file>perf/hwtest.js</file>
|
||||||
|
29
js/perf/closeWithActiveWindows.js
Normal file
29
js/perf/closeWithActiveWindows.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
/* exported run */
|
||||||
|
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^malloc", "^glx", "^clutter"] }] */
|
||||||
|
|
||||||
|
const Main = imports.ui.main;
|
||||||
|
const Scripting = imports.ui.scripting;
|
||||||
|
|
||||||
|
/** Run test. */
|
||||||
|
async function run() {
|
||||||
|
/* eslint-disable no-await-in-loop */
|
||||||
|
|
||||||
|
/* Make created windows remain visible during exit. */
|
||||||
|
Scripting.disableHelperAutoExit();
|
||||||
|
|
||||||
|
Main.overview.hide();
|
||||||
|
await Scripting.waitLeisure();
|
||||||
|
await Scripting.sleep(1000);
|
||||||
|
|
||||||
|
await Scripting.createTestWindow({
|
||||||
|
width: 640,
|
||||||
|
height: 480,
|
||||||
|
});
|
||||||
|
|
||||||
|
await Scripting.waitTestWindows();
|
||||||
|
await Scripting.waitLeisure();
|
||||||
|
await Scripting.sleep(1000);
|
||||||
|
|
||||||
|
/* eslint-enable no-await-in-loop */
|
||||||
|
}
|
@ -39,6 +39,9 @@ perf_tests = [
|
|||||||
{
|
{
|
||||||
'name': 'basic',
|
'name': 'basic',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'closeWithActiveWindows',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'name': 'headlessStart',
|
'name': 'headlessStart',
|
||||||
'options': ['--hotplug'],
|
'options': ['--hotplug'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user