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
a9f0eb9da9
commit
495f9a5f98
@ -9,7 +9,6 @@
|
||||
function* spawnTest() {
|
||||
let { target, panel } = yield initPerformance(MARKERS_URL);
|
||||
let { $, $$, EVENTS, PerformanceController, OverviewView, WaterfallView } = panel.panelWin;
|
||||
let { L10N } = devtools.require("devtools/performance/global");
|
||||
|
||||
// Hijack the markers massaging part of creating the waterfall view,
|
||||
// to prevent collapsing markers and allowing this test to verify
|
||||
@ -45,9 +44,9 @@ function* spawnTest() {
|
||||
|
||||
const tests = {
|
||||
ConsoleTime: function (marker) {
|
||||
shouldHaveLabel($, L10N.getStr("timeline.markerDetail.consoleTimerName"), "!!!", marker);
|
||||
shouldHaveStack($, "startStack", marker);
|
||||
shouldHaveStack($, "endStack", marker);
|
||||
shouldHaveLabel($, "Timer Name:", "!!!", marker);
|
||||
return true;
|
||||
},
|
||||
TimeStamp: function (marker) {
|
||||
@ -83,10 +82,12 @@ function* spawnTest() {
|
||||
let m = markers[i];
|
||||
EventUtils.sendMouseEvent({ type: "mousedown" }, bar);
|
||||
|
||||
if (testsDone.indexOf(m.name) === -1 && tests[m.name]) {
|
||||
let fullTestComplete = tests[m.name](m);
|
||||
if (fullTestComplete) {
|
||||
testsDone.push(m.name);
|
||||
if (tests[m.name]) {
|
||||
if (testsDone.indexOf(m.name) === -1) {
|
||||
let fullTestComplete = tests[m.name](m);
|
||||
if (fullTestComplete) {
|
||||
testsDone.push(m.name);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
info(`TODO: Need to add marker details tests for ${m.name}`);
|
||||
|
Loading…
Reference in New Issue
Block a user