From f9eda6c5d07271e253263bd33e9669e89ffa2365 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 22 May 2023 18:13:43 +0100 Subject: [PATCH] perf-test: type for a minute or so, with more text. Change-Id: I90ee29ed1c69cda0c9db2d4375f7417ab2142b5e Signed-off-by: Michael Meeks --- browser/Makefile.am | 2 +- browser/test/load.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/Makefile.am b/browser/Makefile.am index 562e00075..d006b9717 100644 --- a/browser/Makefile.am +++ b/browser/Makefile.am @@ -801,7 +801,7 @@ check-local: $(MOCHA_TS_JS_FILES) # the delay (in milliseconds) between each emulated key stroke for each view typing_speed=100 # The duration of the typing (in milliseconds) -typing_duration=30000 +typing_duration=60000 # By default 6 views are spawned in the document. single_view="false" # --inspect flag for the first view. Ideally should be used with single_view=true diff --git a/browser/test/load.js b/browser/test/load.js index 1fa4cd7c0..80c7bc37b 100644 --- a/browser/test/load.js +++ b/browser/test/load.js @@ -267,8 +267,9 @@ window.onload = function() { console.debug(zoomMessage); window.app.socket.sendMessage(zoomMessage); await sleep(500); - // mesh the keyboard: + // mash the keyboard: let dummyInput = 'askdjf ,asdhflkas r;we f;akdn.adh ;o wh;fa he;qw e.fkahsd ;vbawe.kguday;f vas.,mdb kaery kejraerga'; + dummyInput = dummyInput.repeat(10); map.focus(); let inputIndex = 0; if (record_stats) {