[gnome-shell/wip/fmuellner/minimal-ci: 1/3] perf: Stop using legacy generator functions
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/minimal-ci: 1/3] perf: Stop using legacy generator functions
- Date: Mon, 28 Jan 2019 02:47:39 +0000 (UTC)
commit ad6b492d3115f25265bcee7ed990ea3b90cb34de
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jan 28 02:57:00 2019 +0100
perf: Stop using legacy generator functions
This was a non-standard Mozilla extension that is no longer supported.
Simply switch to the standardized generator syntax to fix.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/367
js/perf/core.js | 2 +-
js/perf/hwtest.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/perf/core.js b/js/perf/core.js
index e963f0c00..091a86a0f 100644
--- a/js/perf/core.js
+++ b/js/perf/core.js
@@ -65,7 +65,7 @@ let WINDOW_CONFIGS = [
{ width: 640, height: 480, alpha: true, maximized: false, count: 10, metric: 'overviewFps10Alpha' }
];
-function run() {
+function *run() {
Scripting.defineScriptEvent("overviewShowStart", "Starting to show the overview");
Scripting.defineScriptEvent("overviewShowDone", "Overview finished showing");
Scripting.defineScriptEvent("afterShowHide", "After a show/hide cycle for the overview");
diff --git a/js/perf/hwtest.js b/js/perf/hwtest.js
index 7555a8ab2..cce996671 100644
--- a/js/perf/hwtest.js
+++ b/js/perf/hwtest.js
@@ -89,7 +89,7 @@ function extractBootTimestamp() {
return result;
}
-function run() {
+function *run() {
Scripting.defineScriptEvent("desktopShown", "Finished initial animation");
Scripting.defineScriptEvent("overviewShowStart", "Starting to show the overview");
Scripting.defineScriptEvent("overviewShowDone", "Overview finished showing");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]