mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
32 lines
908 B
JavaScript
32 lines
908 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/**
|
|
* Tests that the overview continuously renders content when recording.
|
|
*/
|
|
function spawnTest () {
|
|
let { panel } = yield initPerformance(SIMPLE_URL);
|
|
let { EVENTS, OverviewView } = panel.panelWin;
|
|
|
|
yield startRecording(panel);
|
|
|
|
yield Promise.all([
|
|
once(OverviewView, EVENTS.FRAMERATE_GRAPH_RENDERED),
|
|
once(OverviewView, EVENTS.MARKERS_GRAPH_RENDERED),
|
|
once(OverviewView, EVENTS.MEMORY_GRAPH_RENDERED),
|
|
once(OverviewView, EVENTS.OVERVIEW_RENDERED),
|
|
]);
|
|
|
|
yield Promise.all([
|
|
once(OverviewView, EVENTS.FRAMERATE_GRAPH_RENDERED),
|
|
once(OverviewView, EVENTS.MARKERS_GRAPH_RENDERED),
|
|
once(OverviewView, EVENTS.MEMORY_GRAPH_RENDERED),
|
|
once(OverviewView, EVENTS.OVERVIEW_RENDERED),
|
|
]);
|
|
|
|
yield stopRecording(panel);
|
|
|
|
yield teardown(panel);
|
|
finish();
|
|
}
|