mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Stylo doesn't have a good equivalent for restyle hints to expose in markers and the ones exposed for Gecko aren't very accurate either, so we don't want to expose the restyle hint anymore. At the same time, several animation restyle tests currently use the hint inside the marker to check when animation-only restyles have happened. We can preserve this by changing the data inside the marker to be a flag for whether the restyle is animation only, which we know for both Gecko and Stylo. MozReview-Commit-ID: 8L8KU8Ush7P
31 lines
882 B
JavaScript
31 lines
882 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/**
|
|
* Test that we get "Styles" markers with correct meta.
|
|
*/
|
|
"use strict";
|
|
|
|
const { PerformanceFront } = require("devtools/shared/fronts/performance");
|
|
const MARKER_NAME = "Styles";
|
|
|
|
add_task(function* () {
|
|
yield addTab(MAIN_DOMAIN + "doc_perf.html");
|
|
|
|
initDebuggerServer();
|
|
let client = new DebuggerClient(DebuggerServer.connectPipe());
|
|
let form = yield connectDebuggerClient(client);
|
|
let front = PerformanceFront(client, form);
|
|
yield front.connect();
|
|
let rec = yield front.startRecording({ withMarkers: true });
|
|
|
|
let markers = yield waitForMarkerType(front, MARKER_NAME);
|
|
|
|
yield front.stopRecording(rec);
|
|
|
|
ok(markers.some(m => m.name === MARKER_NAME), `got some ${MARKER_NAME} markers`);
|
|
|
|
yield client.close();
|
|
gBrowser.removeCurrentTab();
|
|
});
|