mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1172120 - Fix intermittent in marker details test.
This commit is contained in:
parent
65f5791b60
commit
32e7423707
@ -9,7 +9,6 @@
|
|||||||
function* spawnTest() {
|
function* spawnTest() {
|
||||||
let { target, panel } = yield initPerformance(MARKERS_URL);
|
let { target, panel } = yield initPerformance(MARKERS_URL);
|
||||||
let { $, $$, EVENTS, PerformanceController, OverviewView, WaterfallView } = panel.panelWin;
|
let { $, $$, EVENTS, PerformanceController, OverviewView, WaterfallView } = panel.panelWin;
|
||||||
let { L10N } = devtools.require("devtools/performance/global");
|
|
||||||
|
|
||||||
// Hijack the markers massaging part of creating the waterfall view,
|
// Hijack the markers massaging part of creating the waterfall view,
|
||||||
// to prevent collapsing markers and allowing this test to verify
|
// to prevent collapsing markers and allowing this test to verify
|
||||||
@ -45,9 +44,9 @@ function* spawnTest() {
|
|||||||
|
|
||||||
const tests = {
|
const tests = {
|
||||||
ConsoleTime: function (marker) {
|
ConsoleTime: function (marker) {
|
||||||
shouldHaveLabel($, L10N.getStr("timeline.markerDetail.consoleTimerName"), "!!!", marker);
|
|
||||||
shouldHaveStack($, "startStack", marker);
|
shouldHaveStack($, "startStack", marker);
|
||||||
shouldHaveStack($, "endStack", marker);
|
shouldHaveStack($, "endStack", marker);
|
||||||
|
shouldHaveLabel($, "Timer Name:", "!!!", marker);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
TimeStamp: function (marker) {
|
TimeStamp: function (marker) {
|
||||||
@ -83,10 +82,12 @@ function* spawnTest() {
|
|||||||
let m = markers[i];
|
let m = markers[i];
|
||||||
EventUtils.sendMouseEvent({ type: "mousedown" }, bar);
|
EventUtils.sendMouseEvent({ type: "mousedown" }, bar);
|
||||||
|
|
||||||
if (testsDone.indexOf(m.name) === -1 && tests[m.name]) {
|
if (tests[m.name]) {
|
||||||
let fullTestComplete = tests[m.name](m);
|
if (testsDone.indexOf(m.name) === -1) {
|
||||||
if (fullTestComplete) {
|
let fullTestComplete = tests[m.name](m);
|
||||||
testsDone.push(m.name);
|
if (fullTestComplete) {
|
||||||
|
testsDone.push(m.name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
info(`TODO: Need to add marker details tests for ${m.name}`);
|
info(`TODO: Need to add marker details tests for ${m.name}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user