Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Update debug-expression detection in mochitests (#7242)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing authored Nov 7, 2018
1 parent 45b0d4a commit 979e8a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/mochitest/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,12 @@ function assertDebugLine(dbg, line) {

const markedSpans = lineInfo.handle.markedSpans;
if (markedSpans && markedSpans.length > 0) {
const markerIndex = Services.prefs.getBoolPref("devtools.debugger.features.column-breakpoints") ? markedSpans.length - 1 : 0;
const marker = markedSpans[markerIndex].marker;
const classMatch = markedSpans.filter(
span => span.marker.className.includes("debug-expression")
).length > 0;

ok(
marker.className.includes("debug-expression"),
classMatch,
"expression is highlighted as paused"
);
}
Expand Down

0 comments on commit 979e8a8

Please sign in to comment.